Fix tag search

This commit is contained in:
James Cole 2020-08-23 18:48:40 +02:00
parent bee54146bf
commit 4bf86500bd
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D
2 changed files with 2 additions and 2 deletions

View File

@ -428,7 +428,7 @@ class OperatorQuerySearch implements SearchInterface
case 'has_any_tag':
$this->collector->hasAnyTag();
break;
case 'tag':
case 'tag_is':
$result = $this->tagRepository->searchTag($value);
if ($result->count() > 0) {
$this->collector->setTags($result);

View File

@ -622,7 +622,7 @@ return [
// other interesting fields
'tag_is' => ['alias' => false, 'trigger_class' => TagIs::class, 'needs_context' => true,],
'tag' => ['alias' => true, 'alias_for' => 'tag', 'needs_context' => true,],
'tag' => ['alias' => true, 'alias_for' => 'tag_is', 'needs_context' => true,],
'created_on' => ['alias' => false, 'trigger_class' => CreatedOn::class, 'needs_context' => true,],
'created_at' => ['alias' => true, 'alias_for' => 'created_on', 'needs_context' => true,],