Skip to content

Commit

Permalink
grid: support sorting by object brick quantity value field
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackbitDevs committed Sep 17, 2024
1 parent b4700f1 commit 54ec888
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Helper/GridHelperService.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,8 @@ public function prepareListingForGrid(array $requestParams, string $requestedLan
. '.' . $list->quoteIdentifier($brickDescriptor['brickfield']);
$doNotQuote = true;
} elseif (count($orderKeyParts) === 2) {
$orderKey = $list->quoteIdentifier($orderKeyParts[0]).'.'.$list->quoteIdentifier($orderKeyParts[1]);
$orderKey = $list->quoteIdentifier($orderKeyParts[0])
. '.' . $list->quoteIdentifier($orderKeyParts[1]);
$doNotQuote = true;

$brickDefinition = Objectbrick\Definition::getByKey($orderKeyParts[0]);
Expand Down

0 comments on commit 54ec888

Please sign in to comment.