From f44c69caed35baf2dab9e62bd62bf1e655c0eb7b Mon Sep 17 00:00:00 2001 From: cp6 Date: Thu, 14 Sep 2023 23:44:27 +1000 Subject: [PATCH] Fixed save_yabs_as_txt causing settings update to fail validation --- app/Http/Controllers/SettingsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index a8ee7361..e40e7417 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -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', @@ -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,