mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Fix tag search
This commit is contained in:
@@ -428,7 +428,7 @@ class OperatorQuerySearch implements SearchInterface
|
|||||||
case 'has_any_tag':
|
case 'has_any_tag':
|
||||||
$this->collector->hasAnyTag();
|
$this->collector->hasAnyTag();
|
||||||
break;
|
break;
|
||||||
case 'tag':
|
case 'tag_is':
|
||||||
$result = $this->tagRepository->searchTag($value);
|
$result = $this->tagRepository->searchTag($value);
|
||||||
if ($result->count() > 0) {
|
if ($result->count() > 0) {
|
||||||
$this->collector->setTags($result);
|
$this->collector->setTags($result);
|
||||||
|
@@ -622,7 +622,7 @@ return [
|
|||||||
|
|
||||||
// other interesting fields
|
// other interesting fields
|
||||||
'tag_is' => ['alias' => false, 'trigger_class' => TagIs::class, 'needs_context' => true,],
|
'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_on' => ['alias' => false, 'trigger_class' => CreatedOn::class, 'needs_context' => true,],
|
||||||
'created_at' => ['alias' => true, 'alias_for' => 'created_on', 'needs_context' => true,],
|
'created_at' => ['alias' => true, 'alias_for' => 'created_on', 'needs_context' => true,],
|
||||||
|
Reference in New Issue
Block a user