From fa05bc48eadcfb4d444923b22049547ae3fba3c3 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Mon, 18 Dec 2023 18:20:44 +0800 Subject: [PATCH] * Fix bug #41930. --- module/design/control.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module/design/control.php b/module/design/control.php index bd20f8364c..97470bffae 100755 --- a/module/design/control.php +++ b/module/design/control.php @@ -51,6 +51,9 @@ class design extends control $this->project->setMenu($projectID); + $project = $this->project->getByID($projectID); + if(!$project->hasProduct) $this->config->hasSwitcherModules = array(); + $this->view->products = $products; $this->view->switcherParams = "projectID={$projectID}&productID={$productID}"; $this->view->switcherText = zget($products, $productID);