From 92a0a76dc823eeac6c166321ccbda91af7ab863f Mon Sep 17 00:00:00 2001 From: sunguangming Date: Wed, 27 Dec 2023 16:44:47 +0800 Subject: [PATCH] * Fix bug #42381. --- module/tree/control.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/module/tree/control.php b/module/tree/control.php index 7336294eb0..061fb93b9c 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -236,7 +236,11 @@ class tree extends control if(dao::isError()) return $this->sendError(dao::getError()); if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'idList' => $moduleIDList)); - if(helper::isAjaxRequest('modal')) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true)); + if(helper::isAjaxRequest('modal')) + { + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true, 'callback' => "loadProductModules($rootID);")); + } + return $this->sendSuccess(array('load' => true)); } }