Skip to content

Commit

Permalink
Fix: use version dependent database column name on tags filter query (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
bender-nvkz authored Feb 16, 2024
1 parent 2530a31 commit 0263330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GraphQL/Resolver/QueryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,10 @@ static function ($fullpath) use ($db) {
return $db->quote($tag);
}, $args['tags'])));

$conditionParts[] = "o_id IN (
$conditionParts[] = sprintf("%s IN (
SELECT cId FROM tags_assignment INNER JOIN tags ON tags.id = tags_assignment.tagid
WHERE
ctype = 'object' AND LOWER(tags.name) IN (" . $tags . '))';
ctype = 'object' AND LOWER(tags.name) IN (", Service::getVersionDependentDatabaseColumnName('o_id')) . $tags . '))';
}

// paging
Expand Down

0 comments on commit 0263330

Please sign in to comment.