Skip to content

Commit

Permalink
fix validation rule for counties
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Mar 20, 2024
1 parent b92bef1 commit 588670a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Requests/Project/StatusChangeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function rules(): array
'end' => ['required', 'date', 'after:start'],
'target_budget' => ['required', 'numeric', 'min:1'],
'categories' => ['required', 'array', 'min:1'],
'counties' => ['required_if:is_national,0', 'array', 'min:1'],
'counties' => ['required_if:is_national,0', 'array', 'min:1', 'nullable'],
'description' => ['required', 'min:100', 'max:1000'],
'scope' => ['required', 'min:100', 'max:1000'],
'beneficiaries' => ['required', 'min:50', 'max:1000'],
Expand Down

0 comments on commit 588670a

Please sign in to comment.