mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 10:16:49 +00:00
Fix #7377
This commit is contained in:
@@ -856,9 +856,9 @@ class OperatorQuerySearch implements SearchInterface
|
|||||||
break;
|
break;
|
||||||
case '-tag_is_not':
|
case '-tag_is_not':
|
||||||
case 'tag_is':
|
case 'tag_is':
|
||||||
$result = $this->tagRepository->searchTag($value);
|
$result = $this->tagRepository->findByTag($value);
|
||||||
if ($result->count() > 0) {
|
if (null !== $result) {
|
||||||
$this->collector->setTags($result);
|
$this->collector->setTags(new Collection([$result]));
|
||||||
}
|
}
|
||||||
// no tags found means search must result in nothing.
|
// no tags found means search must result in nothing.
|
||||||
if (0 === $result->count()) {
|
if (0 === $result->count()) {
|
||||||
|
Reference in New Issue
Block a user