mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 01:16:46 -06:00
Fix #3853
This commit is contained in:
parent
b1b2e0ff09
commit
602f5b6646
@ -328,8 +328,8 @@ class FireflyValidator extends Validator
|
||||
}
|
||||
|
||||
// these trigger types need a simple strlen check:
|
||||
$length = ['from_account_starts', 'from_account_ends', 'from_account_is', 'from_account_contains', 'to_account_starts', 'to_account_ends',
|
||||
'to_account_is', 'to_account_contains', 'description_starts', 'description_ends', 'description_contains', 'description_is', 'category_is',
|
||||
$length = ['source_account_starts', 'source_account_ends', 'source_account_is', 'source_account_contains', 'destination_account_starts', 'destination_account_ends',
|
||||
'destination_account_is', 'destination_account_contains', 'description_starts', 'description_ends', 'description_contains', 'description_is', 'category_is',
|
||||
'budget_is', 'tag_is', 'currency_is', 'notes_contain', 'notes_start', 'notes_end', 'notes_are',];
|
||||
if (in_array($triggerType, $length, true)) {
|
||||
return '' !== $value;
|
||||
|
16
public/v1/js/ff/rules/create-edit.js
vendored
16
public/v1/js/ff/rules/create-edit.js
vendored
@ -303,14 +303,14 @@ function updateTriggerInput(selectList) {
|
||||
inputResult.prop('disabled', false);
|
||||
inputResult.prop('type', 'text');
|
||||
switch (selectList.val()) {
|
||||
case 'from_account_starts':
|
||||
case 'from_account_ends':
|
||||
case 'from_account_is':
|
||||
case 'from_account_contains':
|
||||
case 'to_account_starts':
|
||||
case 'to_account_ends':
|
||||
case 'to_account_is':
|
||||
case 'to_account_contains':
|
||||
case 'source_account_starts':
|
||||
case 'source_account_ends':
|
||||
case 'source_account_is':
|
||||
case 'source_account_contains':
|
||||
case 'destination_account_starts':
|
||||
case 'destination_account_ends':
|
||||
case 'destination_account_is':
|
||||
case 'destination_account_contains':
|
||||
console.log('Select list value is ' + selectList.val() + ', so input needs auto complete.');
|
||||
createAutoComplete(inputResult, 'api/v1/autocomplete/accounts');
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user