From a9c734e45bd4b0527665bd704053f70b09eb22fa Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sun, 18 Sep 2022 17:40:07 +0800 Subject: [PATCH] fix admin setting can not clear value --- .../Resources/System/SettingResource/Pages/EditSetting.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/Filament/Resources/System/SettingResource/Pages/EditSetting.php b/app/Filament/Resources/System/SettingResource/Pages/EditSetting.php index c65d8386..92bda9d3 100644 --- a/app/Filament/Resources/System/SettingResource/Pages/EditSetting.php +++ b/app/Filament/Resources/System/SettingResource/Pages/EditSetting.php @@ -58,9 +58,6 @@ class EditSetting extends Page implements Forms\Contracts\HasForms $data = []; foreach ($formData as $prefix => $parts) { foreach ($parts as $name => $value) { - if (is_null($value)) { - continue; - } if (in_array($name, $notAutoloadNames)) { $autoload = 'no'; } else {