From e82fdfd0a6f0afe6446c27bf39b10a385f123c06 Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 20 Feb 2024 14:48:15 +0800 Subject: [PATCH] * myControl: fix error the $lang->module was changed to object from string when load tree model. --- module/my/control.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/my/control.php b/module/my/control.php index 2cf8616e82..5364dec123 100755 --- a/module/my/control.php +++ b/module/my/control.php @@ -1012,15 +1012,15 @@ class my extends control $feedbacks = $browseType != 'bysearch' ?$this->loadModel('feedback')->getList($browseType, $orderBy, $pager) : $this->loadModel('feedback')->getBySearch($queryID, $orderBy, $pager); $this->loadModel('common')->saveQueryCondition($this->dao->get(), 'workFeedback'); - $this->myZen->assignRelatedData($feedbacks); - $this->myZen->buildSearchFormForFeedback($queryID, $orderBy); - $this->myZen->showWorkCount($recTotal, $recPerPage, $pageID); - $this->loadModel('datatable'); $this->lang->datatable->moduleSetting = str_replace($this->lang->module, $this->lang->feedback->moduleAB, $this->lang->datatable->moduleSetting); $this->lang->datatable->showModule = str_replace($this->lang->module, $this->lang->feedback->moduleAB, $this->lang->datatable->showModule); $this->lang->datatable->showModuleList = str_replace($this->lang->module, $this->lang->feedback->moduleAB, $this->lang->datatable->showModuleList); + $this->myZen->assignRelatedData($feedbacks); + $this->myZen->buildSearchFormForFeedback($queryID, $orderBy); + $this->myZen->showWorkCount($recTotal, $recPerPage, $pageID); + $this->view->title = $this->lang->my->feedback; $this->view->mode = 'feedback'; $this->view->browseType = $browseType;