Merge pull request #7301 from firefly-iii/fix-7299

Fix #7299
This commit is contained in:
James Cole 2023-03-31 19:22:38 +02:00 committed by GitHub
commit 6f4ca53907
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ class UpdateRequest extends FormRequest
return [
'name' => 'between:1,255|uniquePiggyBankForUser:'.$piggyBank->id,
'current_amount' => ['numeric', 'gte:0', new LessThanPiggyTarget()],
'target_amount' => 'numeric|gt:0',
'target_amount' => 'numeric|gte:0',
'start_date' => 'date|nullable',
'target_date' => 'date|nullable|after:start_date',
'notes' => 'max:65000',