Fix validation for #3532

This commit is contained in:
James Cole
2020-07-06 06:55:27 +02:00
parent 26d19fab32
commit 32e0a5bd80
13 changed files with 19 additions and 19 deletions

View File

@@ -74,8 +74,8 @@ class BillUpdateRequest extends Request
return [
'name' => sprintf('required|between:1,255|uniqueObjectForUser:bills,name,%d', $bill->id),
'amount_min' => 'required|numeric|more:0|max:1000000000',
'amount_max' => 'required|numeric|more:0|max:1000000000',
'amount_min' => 'required|numeric|gt:0|max:1000000000',
'amount_max' => 'required|numeric|gt:0|max:1000000000',
'transaction_currency_id' => 'required|exists:transaction_currencies,id',
'date' => 'required|date',
'repeat_freq' => 'required|in:weekly,monthly,quarterly,half-year,yearly',