mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 02:45:58 +00:00
Fix #3902
This commit is contained in:
@@ -335,6 +335,11 @@ class FireflyValidator extends Validator
|
|||||||
return '' !== $value;
|
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.
|
// check transaction type.
|
||||||
if ('transaction_type' === $triggerType) {
|
if ('transaction_type' === $triggerType) {
|
||||||
$count = TransactionType::where('type', ucfirst($value))->count();
|
$count = TransactionType::where('type', ucfirst($value))->count();
|
||||||
|
Reference in New Issue
Block a user