Skip to content

Commit

Permalink
Fix wrong search for id in fields groups (#43774)
Browse files Browse the repository at this point in the history
  • Loading branch information
chmst authored Jul 13, 2024
1 parent 7133483 commit cba319d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ protected function getListQuery()
if (stripos($search, 'id:') === 0) {
$search = (int) substr($search, 3);
$query->where($db->quoteName('a.id') . ' = :search')
->bind(':id', $search, ParameterType::INTEGER);
->bind(':search', $search, ParameterType::INTEGER);
} else {
$search = '%' . str_replace(' ', '%', trim($search)) . '%';
$query->where($db->quoteName('a.title') . ' LIKE :search')
Expand Down

0 comments on commit cba319d

Please sign in to comment.