Rule engine and search engine now use the same operators; making them interchangeable.

This commit is contained in:
James Cole
2020-08-21 08:23:44 +02:00
parent 3081911eae
commit d69934ca8f
11 changed files with 141 additions and 165 deletions

View File

@@ -77,7 +77,7 @@ class Rule extends AbstractExtension
return new TwigFunction(
'allRuleTriggers',
static function () {
$ruleTriggers = array_keys(Config::get('firefly.rule-triggers'));
$ruleTriggers = array_keys(config('firefly.search.operators'));;
$possibleTriggers = [];
foreach ($ruleTriggers as $key) {
if ('user_action' !== $key) {