mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix enum
This commit is contained in:
parent
c0af63e59e
commit
29e07c6604
@ -212,7 +212,7 @@ class OperatorQuerySearch implements SearchInterface
|
|||||||
// used to search for x:y
|
// used to search for x:y
|
||||||
$operator = strtolower($searchNode->getValue());
|
$operator = strtolower($searchNode->getValue());
|
||||||
$value = $searchNode->getNode()->getValue();
|
$value = $searchNode->getNode()->getValue();
|
||||||
$prohibited = $searchNode->getBoolOperator()->equals(BoolOperator::PROHIBITED()->getValue());
|
$prohibited = $searchNode->getBoolOperator() === BoolOperator::PROHIBITED;
|
||||||
$context = config(sprintf('search.operators.%s.needs_context', $operator));
|
$context = config(sprintf('search.operators.%s.needs_context', $operator));
|
||||||
|
|
||||||
// is an operator that needs no context, and value is false, then prohibited = true.
|
// is an operator that needs no context, and value is false, then prohibited = true.
|
||||||
|
Loading…
Reference in New Issue
Block a user