Bloody search filters again...
This commit is contained in:
@@ -43,7 +43,9 @@ final class SearchService
|
||||
|
||||
$findings = [];
|
||||
|
||||
if ((isset($filters['text']) && $filters['text'] !== '') || isset($filters['category'])) {
|
||||
if ((isset($filters['text']) && $filters['text'] !== '') ||
|
||||
(isset($filters['category']) && $filters['category'] !== '')
|
||||
) {
|
||||
$findings = array_map(
|
||||
fn(\App\Entity\Finding $f) => $f->toSummary(),
|
||||
$this->findingRepository->findByFilters($filters)
|
||||
|
||||
Reference in New Issue
Block a user