Skip to content

Commit 01ec55c

Browse files
authored
Fix translation keys filter (#934)
* Fix translation keys filter * Apply php-cs-fixer changes --------- Co-authored-by: fashxp <8792145+fashxp@users.noreply.github.com>
1 parent 2c120fd commit 01ec55c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/GraphQL/Resolver/TranslationListing.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ public function resolveListing(mixed $value = null, array $args = [], array $con
6161

6262
if (!empty($args['keys'])) {
6363
$keysArray = explode(',', $args['keys']);
64-
$keysString = "'" . implode("','", $keysArray) . "'" ;
65-
$list->setCondition('translations_messages.key IN (' . $keysString . ')');
64+
$keysArray = array_map(fn ($value): string => $list->quote($value), $keysArray);
65+
$keysString = implode(',', $keysArray);
66+
$list->setCondition('`key` IN (' . $keysString . ')');
6667
}
6768

6869
if (!empty($args['languages'])) {

0 commit comments

Comments
 (0)