Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Make prohibited word search work
Sobuno50aff9cfb64e
diff --git a/app/Support/Search/OperatorQuerySearch.php b/app/Support/Search/OperatorQuerySearch.phpindex e37b90e282..2bdbe40c5b 100644--- a/app/Support/Search/OperatorQuerySearch.php+++ b/app/Support/Search/OperatorQuerySearch.php@@ -2774,7 +2774,7 @@ class OperatorQuerySearch implements SearchInterfacepublic function searchTransactions(): LengthAwarePaginator{$this->parseTagInstructions();- if (0 === count($this->getWords()) && 0 === count($this->getOperators())) {+ if (0 === count($this->getWords()) && 0 === count($this->getExcludedWords()) && 0 === count($this->getOperators())) {return new LengthAwarePaginator([], 0, 5, 1);}@@ -2831,6 +2831,11 @@ class OperatorQuerySearch implements SearchInterfacereturn $this->words;}+ public function getExcludedWords(): array+ {+ return $this->prohibitedWords;+ }+public function setDate(Carbon $date): void{$this->date = $date;