Quick fix in budget edit. [skip ci]

This commit is contained in:
James Cole 2015-06-09 16:20:37 +02:00
parent e587d934b1
commit c933ffec66

View File

@ -31,7 +31,7 @@ class BudgetFormRequest extends Request
$nameRule = 'required|between:1,100|uniqueObjectForUser:budgets,name';
if (Budget::find(Input::get('id'))) {
$nameRule = 'required|between:1,100|uniqueObjectForUser:budgets,' . intval(Input::get('id'));
$nameRule = 'required|between:1,100|uniqueObjectForUser:budgets,name,' . intval(Input::get('id'));
}
return [