James Cole
2023-10-15 12:45:27 +02:00
parent 127b6ea515
commit 028ef63f6e
2 changed files with 9 additions and 6 deletions

View File

@@ -98,7 +98,9 @@ class CreateController extends Controller
$operators = $search->getOperators()->toArray(); $operators = $search->getOperators()->toArray();
if ('' !== $words) { if ('' !== $words) {
session()->flash('warning', trans('firefly.rule_from_search_words', ['string' => $words])); session()->flash('warning', trans('firefly.rule_from_search_words', ['string' => $words]));
$operators[] = ['type' => 'description_contains', 'value' => $words]; $operators[] = [
'type' => 'description_contains',
'value' => $words];
} }
$oldTriggers = $this->parseFromOperators($operators); $oldTriggers = $this->parseFromOperators($operators);
} }

View File

@@ -146,6 +146,7 @@ trait RuleManagement
'oldTrigger' => OperatorQuerySearch::getRootOperator($operator['type']), 'oldTrigger' => OperatorQuerySearch::getRootOperator($operator['type']),
'oldValue' => $operator['value'], 'oldValue' => $operator['value'],
'oldChecked' => false, 'oldChecked' => false,
'oldProhibited' => $operator['prohibited'] ?? false,
'count' => $index + 1, 'count' => $index + 1,
'triggers' => $triggers, 'triggers' => $triggers,
] ]