Skip to content

Commit

Permalink
fix(admin): Sort Selectize values in order filtered for loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mcaskill committed Feb 11, 2025
1 parent 72f5da7 commit 69ed8ea
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,10 @@ public function selectizeVal($val, array $options = [])
'value' => $val,
]);

if (count($val) > 1) {
$loader->addOrder($model->key(), 'values', [ 'values' => $val ]);
}

$collection = $loader->load();

if ($prop instanceof HierarchicalObjectProperty) {
Expand Down

0 comments on commit 69ed8ea

Please sign in to comment.