Skip to content

Commit f50677c

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-73412' into 2.2-develop-pr68
2 parents 523a83e + fae945a commit f50677c

File tree

2 files changed

+86
-94
lines changed

2 files changed

+86
-94
lines changed

dev/tests/functional/tests/app/Magento/Downloadable/Test/Block/Adminhtml/Catalog/Product/Edit/Section/Downloadable/Samples.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ protected function sortSample($position, $sortOrder, SimpleElement $element = nu
114114
foreach ($this->sortRowsData as &$sortRowData) {
115115
if ($sortRowData['sort_order'] > $currentSortRowData['sort_order']) {
116116
// need to reload block because we are changing dom
117-
$target = $this->getRowBlock($sortRowData['current_position_in_grid'], $element)->getSortHandle();
118-
$this->getRowBlock($currentSortRowData['current_position_in_grid'], $element)->dragAndDropTo($target);
117+
$target = $this->getRowBlock($currentSortRowData['current_position_in_grid'], $element)
118+
->getSortHandle();
119+
$this->getRowBlock($sortRowData['current_position_in_grid'], $element)->dragAndDropTo($target);
119120

120121
$currentSortRowData['current_position_in_grid']--;
121122
$sortRowData['current_position_in_grid']++;

0 commit comments

Comments
 (0)