mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-20 21:43:08 -06:00
Fixed a bug in the form request that wouldn't accept fairly long names.
This commit is contained in:
parent
59998573ee
commit
8601428c4c
@ -32,11 +32,11 @@ class AccountFormRequest extends Request
|
|||||||
$types = join(',', array_keys(Config::get('firefly.subTitlesByIdentifier')));
|
$types = join(',', array_keys(Config::get('firefly.subTitlesByIdentifier')));
|
||||||
$ccPaymentTypes = join(',', array_keys(Config::get('firefly.ccTypes')));
|
$ccPaymentTypes = join(',', array_keys(Config::get('firefly.ccTypes')));
|
||||||
|
|
||||||
$nameRule = 'required|between:1,100|uniqueAccountForUser';
|
$nameRule = 'required|min:1|uniqueAccountForUser';
|
||||||
$idRule = '';
|
$idRule = '';
|
||||||
if (Account::find(Input::get('id'))) {
|
if (Account::find(Input::get('id'))) {
|
||||||
$idRule = 'belongsToUser:accounts';
|
$idRule = 'belongsToUser:accounts';
|
||||||
$nameRule = 'required|between:1,100|uniqueAccountForUser:' . Input::get('id');
|
$nameRule = 'required|min:1|uniqueAccountForUser:' . Input::get('id');
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
Loading…
Reference in New Issue
Block a user