Skip to content

Commit

Permalink
[Bug]: Query filters not working with logical operators and object br…
Browse files Browse the repository at this point in the history
…icks attributes (#534)
  • Loading branch information
mcop1 authored May 31, 2022
1 parent ab641b8 commit c5966fc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/GraphQL/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,8 @@ public static function addJoins(&$list, $filter, $columns, &$mappingTable = [])
$nameParts = explode('~', $name);
$brickName = $nameParts[0];
$brickKey = $nameParts[1];
if ($brickKey === $key) {
$list->addObjectbrick($brickName);
$mappingTable[$brickKey] = 1;
}
$list->addObjectbrick($brickName);
$mappingTable[$brickKey] = 1;
}
}
}
Expand Down Expand Up @@ -109,7 +107,7 @@ public static function buildSqlCondition($defaultTable, $q, $op = null, $subject
if (is_array($value)) {
$childParts = [];
foreach ($value as $arrItem) {
$childParts[] = self::buildSqlCondition($defaultTable, $arrItem, $childOp);
$childParts[] = self::buildSqlCondition($defaultTable, $arrItem, $childOp, $subject, $fieldMappingTable);
}
$parts[] = implode(' ' . $childOp . ' ', $childParts);
} else {
Expand Down

0 comments on commit c5966fc

Please sign in to comment.