Skip to content

Commit

Permalink
Fix $fieldMappingTable check - follow up to #490
Browse files Browse the repository at this point in the history
  • Loading branch information
dvesh3 committed Mar 16, 2022
1 parent 15d5b57 commit 1a3974c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQL/Helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public static function buildSqlCondition($defaultTable, $q, $op = null, $subject
$valuePart = ' =' . $db->quote($objectValue) . ')';
}

if (isset($fieldMappingTable, $key)) {
if (isset($fieldMappingTable[$key])) {
$parts[] = '( NOT ' . $db->quoteIdentifier($key) . $valuePart . ')';
} else {
$parts[] = '( NOT ' . self::quoteAbsoluteColumnName($defaultTable, $key) . $valuePart . ')';
Expand Down

0 comments on commit 1a3974c

Please sign in to comment.