From 26c038b25b8cf1a4ec1d1ee31276e0caaaef6602 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Mon, 27 Feb 2023 11:12:54 +0100 Subject: [PATCH] chg: [settings:cerebrate] Improved check before saving debug level --- src/Model/Table/SettingProviders/CerebrateSettingsProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model/Table/SettingProviders/CerebrateSettingsProvider.php b/src/Model/Table/SettingProviders/CerebrateSettingsProvider.php index 3f9bb65..1876c7b 100644 --- a/src/Model/Table/SettingProviders/CerebrateSettingsProvider.php +++ b/src/Model/Table/SettingProviders/CerebrateSettingsProvider.php @@ -321,7 +321,7 @@ class CerebrateSettingsProvider extends BaseSettingsProvider 2 => __('Debug On + SQL Dump'), ], 'test' => function ($value, $setting, $validator) { - $validator->range('value', [0, 3]); + $validator->range('value', [0, 2]); return testValidator($value, $validator); }, ],