mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-04 19:53:44 +00:00
Fix #3902
This commit is contained in:
@@ -335,6 +335,11 @@ class FireflyValidator extends Validator
|
||||
return '' !== $value;
|
||||
}
|
||||
|
||||
// check if it's an existing account.
|
||||
if (in_array($triggerType, ['destination_account_id', 'source_account_id'])) {
|
||||
return is_numeric($value) && (int) $value > 0;
|
||||
}
|
||||
|
||||
// check transaction type.
|
||||
if ('transaction_type' === $triggerType) {
|
||||
$count = TransactionType::where('type', ucfirst($value))->count();
|
||||
|
Reference in New Issue
Block a user