Skip to content

Commit

Permalink
Fixed save_yabs_as_txt causing settings update to fail validation
Browse files Browse the repository at this point in the history
  • Loading branch information
cp6 committed Sep 14, 2023
1 parent b2595fc commit f44c69c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function update(Request $request)
'show_server_value_location' => 'required|integer|min:0|max:1',
'show_server_value_price' => 'required|integer|min:0|max:1',
'show_server_value_yabs' => 'required|integer|min:0|max:1',
'save_yabs_as_txt' => 'required|integer|min:0|max:1',
'save_yabs_as_txt' => 'integer|min:0|max:1',
'default_currency' => 'required|string|size:3',
'default_server_os' => 'required|integer',
'due_soon_amount' => 'required|integer|between:0,12',
Expand Down Expand Up @@ -60,7 +60,7 @@ public function update(Request $request)
'show_server_value_location' => $request->show_server_value_location,
'show_server_value_price' => $request->show_server_value_price,
'show_server_value_yabs' => $request->show_server_value_yabs,
'save_yabs_as_txt' => $request->save_yabs_as_txt,
'save_yabs_as_txt' => 0,
'default_currency' => $request->default_currency,
'default_server_os' => $request->default_server_os,
'due_soon_amount' => $request->due_soon_amount,
Expand Down

0 comments on commit f44c69c

Please sign in to comment.