Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix tag search
James Cole4bf86500bdd5
diff --git a/app/Support/Search/OperatorQuerySearch.php b/app/Support/Search/OperatorQuerySearch.phpindex 398a360846..83450a8c48 100644--- a/app/Support/Search/OperatorQuerySearch.php+++ b/app/Support/Search/OperatorQuerySearch.php@@ -428,7 +428,7 @@ class OperatorQuerySearch implements SearchInterfacecase '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);diff --git a/config/firefly.php b/config/firefly.phpindex c83c7c34ba..5a321f64c5 100644--- a/config/firefly.php+++ b/config/firefly.php@@ -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,],