From 4b2ede7a716c4cb0ef3565cfa24b6acc85cb2597 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 16 Jan 2025 12:20:14 -0800 Subject: [PATCH] Use 0 for zerofill_count if nothing provided --- app/Http/Controllers/SettingsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 1f84ecf7c6..1bc120d1c1 100755 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -192,7 +192,7 @@ class SettingsController extends Controller $settings->next_auto_tag_base = 1; $settings->auto_increment_assets = $request->input('auto_increment_assets', 0); $settings->auto_increment_prefix = $request->input('auto_increment_prefix'); - $settings->zerofill_count = $request->input('zerofill_count', 5); + $settings->zerofill_count = $request->input('zerofill_count') ?: 0; if ((! $user->isValid()) || (! $settings->isValid())) { return redirect()->back()->withInput()->withErrors($user->getErrors())->withErrors($settings->getErrors());