From d9dc394e7ff5cb1ce8a632a7d88868f5646a5e08 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 16 Apr 2023 06:56:11 +0200 Subject: [PATCH] Fix #7377 --- app/Support/Search/OperatorQuerySearch.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Support/Search/OperatorQuerySearch.php b/app/Support/Search/OperatorQuerySearch.php index 929057593e..d6e81a60b2 100644 --- a/app/Support/Search/OperatorQuerySearch.php +++ b/app/Support/Search/OperatorQuerySearch.php @@ -856,9 +856,9 @@ class OperatorQuerySearch implements SearchInterface break; case '-tag_is_not': case 'tag_is': - $result = $this->tagRepository->searchTag($value); - if ($result->count() > 0) { - $this->collector->setTags($result); + $result = $this->tagRepository->findByTag($value); + if (null !== $result) { + $this->collector->setTags(new Collection([$result])); } // no tags found means search must result in nothing. if (0 === $result->count()) {