This commit is contained in:
James Cole 2023-04-16 06:56:11 +02:00
parent a63daf6166
commit d9dc394e7f
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -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()) {