From 61540282cefce58d7184de4d9c775acb0f1e63d5 Mon Sep 17 00:00:00 2001 From: Codencode Date: Thu, 26 Sep 2024 08:57:38 +0200 Subject: [PATCH] Update AdminShopGroupController.php --- controllers/admin/AdminShopGroupController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/admin/AdminShopGroupController.php b/controllers/admin/AdminShopGroupController.php index 0970380ddf2c4..710b03fcdbfeb 100644 --- a/controllers/admin/AdminShopGroupController.php +++ b/controllers/admin/AdminShopGroupController.php @@ -308,7 +308,7 @@ public function renderForm() ]; $this->fields_value = [ - 'active' => true, + 'active' => $obj->id ? (bool) $obj->active : true, ]; return parent::renderForm();