mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	This commit is contained in:
		| @@ -98,7 +98,9 @@ class CreateController extends Controller | ||||
|             $operators = $search->getOperators()->toArray(); | ||||
|             if ('' !== $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); | ||||
|         } | ||||
|   | ||||
| @@ -143,11 +143,12 @@ trait RuleManagement | ||||
|                 $renderedEntries[] = view( | ||||
|                     'rules.partials.trigger', | ||||
|                     [ | ||||
|                         'oldTrigger' => OperatorQuerySearch::getRootOperator($operator['type']), | ||||
|                         'oldValue'   => $operator['value'], | ||||
|                         'oldChecked' => false, | ||||
|                         'count'      => $index + 1, | ||||
|                         'triggers'   => $triggers, | ||||
|                         'oldTrigger'    => OperatorQuerySearch::getRootOperator($operator['type']), | ||||
|                         'oldValue'      => $operator['value'], | ||||
|                         'oldChecked'    => false, | ||||
|                         'oldProhibited' => $operator['prohibited'] ?? false, | ||||
|                         'count'         => $index + 1, | ||||
|                         'triggers'      => $triggers, | ||||
|                     ] | ||||
|                 )->render(); | ||||
|             } catch (Throwable $e) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user