Skip to content

Commit 081b91c

Browse files
authored
Update Location.php (#1126)
* Update HasLocationOptions.php Necessary for persisting new options in API calls * Update Location.php
1 parent c28d75d commit 081b91c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/admin/requests/Location.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ public function attributes()
3232
public function rules()
3333
{
3434
return [
35-
'location_name' => ['required', 'between:2,32'],
36-
'location_email' => ['required', 'email:filter', 'max:96'],
35+
'location_name' => ['sometimes', 'required', 'between:2,32'],
36+
'location_email' => ['sometimes', 'required', 'email:filter', 'max:96'],
3737
'location_telephone' => ['sometimes'],
38-
'location_address_1' => ['required', 'between:2,128'],
38+
'location_address_1' => ['sometimes', 'required', 'between:2,128'],
3939
'location_address_2' => ['max:128'],
4040
'location_city' => ['max:128'],
4141
'location_state' => ['max:128'],
4242
'location_postcode' => ['max:10'],
43-
'location_country_id' => ['required', 'integer'],
44-
'options.auto_lat_lng' => ['required', 'boolean'],
43+
'location_country_id' => ['sometimes', 'required', 'integer'],
44+
'options.auto_lat_lng' => ['sometimes', 'required', 'boolean'],
4545
'location_lat' => ['sometimes', 'numeric'],
4646
'location_lng' => ['sometimes', 'numeric'],
4747
'description' => ['max:3028'],

0 commit comments

Comments
 (0)