This commit is contained in:
James Cole 2019-11-17 11:34:53 +01:00
parent 414c4a742d
commit 07623335f7
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 3 additions and 3 deletions

View File

@ -89,7 +89,7 @@ class RuleFormRequest extends Request
'triggers.*.type' => 'required|in:' . implode(',', $validTriggers),
'triggers.*.value' => sprintf('required_if:triggers.*.type,%s|min:1|ruleTriggerValue', $contextTriggers),
'actions.*.type' => 'required|in:' . implode(',', $validActions),
'actions.*.value' => sprintf('required_if:actions.*.type,%s|min:1|ruleActionValue', $contextActions),
'actions.*.value' => sprintf('required_if:actions.*.type,%s|min:0|max:255|ruleActionValue', $contextActions),
'strict' => 'in:0,1',
];

View File

@ -480,8 +480,8 @@ return [
'append_notes',
'prepend_notes',
'link_to_bill',
'convert_withdrawal',
'convert_deposit',
//'convert_withdrawal',
//'convert_deposit',
'convert_transfer',
],
'context-rule-triggers' => [