Skip to content

Commit

Permalink
Merge 4.x into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI authored Apr 4, 2024
2 parents 60aae69 + 011b83f commit 7ffc123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Datagrid/ProxyQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function getDoctrineQuery(): Query
foreach ($queryBuilder->getDQLPart('orderBy') as $order) {
foreach ($order->getParts() as $part) {
\assert(\is_string($part));
$existingOrders[] = trim(str_replace([Criteria::DESC, Criteria::ASC], '', $part));
$existingOrders[] = trim(str_replace(['DESC', 'ASC'], '', $part));
}
}

Expand Down

0 comments on commit 7ffc123

Please sign in to comment.