fix: [tags] index search fixed

- not passing name, filter, search all together would lead to the search not working
pull/8743/head
iglocska 2022-11-08 12:18:31 +01:00
parent 0f68b42224
commit 9f3d0eccdd
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ class TagsController extends AppController
$this->paginate['conditions']['AND'][] = ['LOWER(Tag.name) LIKE' => '%' . strtolower($passedArgsArray['searchall']) . '%'];
}
foreach (['name', 'filter', 'search'] as $f) {
if (!empty($passedArgsArray['name'])) {
if (!empty($passedArgsArray[$f])) {
$this->paginate['conditions']['AND'][] = ['LOWER(Tag.name)' => strtolower($passedArgsArray[$f])];
}
}