Skip to content

Commit

Permalink
Keep fileTree sorting order when changing selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Sep 9, 2020
1 parent 4d71a92 commit b63977f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core-bundle/src/Resources/contao/classes/Ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,9 @@ public function executePostActions(DataContainer $dc)
}
}

// Keep the previous sorting order when reloading the widget
$varValue = ArrayUtil::sortByOrderField($varValue, $dc->activeRecord->$strField);

$varValue = serialize($varValue);
}

Expand Down

0 comments on commit b63977f

Please sign in to comment.