Skip to content

Firefly III: a personal finances manager

Fix #7377

James Coled9dc394e7ff5
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()) {