mirror of https://github.com/MISP/MISP
fix: [tags] index search fixed
- not passing name, filter, search all together would lead to the search not workingpull/8743/head
parent
0f68b42224
commit
9f3d0eccdd
|
@ -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])];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue