mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Make prohibited word search work
This commit is contained in:
parent
058a0f9fb2
commit
50aff9cfb6
@ -2774,7 +2774,7 @@ class OperatorQuerySearch implements SearchInterface
|
|||||||
public function searchTransactions(): LengthAwarePaginator
|
public function searchTransactions(): LengthAwarePaginator
|
||||||
{
|
{
|
||||||
$this->parseTagInstructions();
|
$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);
|
return new LengthAwarePaginator([], 0, 5, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2831,6 +2831,11 @@ class OperatorQuerySearch implements SearchInterface
|
|||||||
return $this->words;
|
return $this->words;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getExcludedWords(): array
|
||||||
|
{
|
||||||
|
return $this->prohibitedWords;
|
||||||
|
}
|
||||||
|
|
||||||
public function setDate(Carbon $date): void
|
public function setDate(Carbon $date): void
|
||||||
{
|
{
|
||||||
$this->date = $date;
|
$this->date = $date;
|
||||||
|
Loading…
Reference in New Issue
Block a user