mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 08:11:20 +00:00
Replace enum
This commit is contained in:
@@ -248,7 +248,7 @@ class RecurrenceFormRequest extends FormRequest
|
||||
$rules['source_id'] = 'required|exists:accounts,id|belongsToUser:accounts';
|
||||
$rules['destination_name'] = 'min:1|max:255|nullable';
|
||||
}
|
||||
if (strtolower(TransactionType::DEPOSIT) === $type) {
|
||||
if (strtolower(TransactionTypeEnum::DEPOSIT->value) === $type) {
|
||||
$rules['source_name'] = 'min:1|max:255|nullable';
|
||||
$rules['destination_id'] = 'required|exists:accounts,id|belongsToUser:accounts';
|
||||
}
|
||||
|
Reference in New Issue
Block a user