This commit is contained in:
James Cole 2023-01-11 06:10:57 +01:00
parent c0af63e59e
commit 29e07c6604
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -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.