This should catch the missing piggy bank events.

This commit is contained in:
James Cole
2015-03-24 20:54:25 +01:00
parent f50b133f2e
commit 3dc794002f
4 changed files with 11 additions and 11 deletions

View File

@@ -59,6 +59,7 @@ class JournalFormRequest extends Request
case 'transfer':
$rules['account_from_id'] = 'required|exists:accounts,id|belongsToUser:accounts|different:account_to_id';
$rules['account_to_id'] = 'required|exists:accounts,id|belongsToUser:accounts|different:account_from_id';
$rules['piggy_bank_id'] = 'exists:piggy_banks,id';
$rules['category'] = 'between:1,255';
break;
default: