mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-23 22:35:03 +00:00
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
@@ -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,
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user