From 0260f8dbd7ea80c3159704ce5857c7169d8d9da1 Mon Sep 17 00:00:00 2001 From: zenggang Date: Tue, 8 Aug 2023 07:40:46 +0000 Subject: [PATCH] * Fix bug#37113 --- module/compile/control.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/compile/control.php b/module/compile/control.php index 65b8b048d8..81df93f34a 100644 --- a/module/compile/control.php +++ b/module/compile/control.php @@ -39,6 +39,7 @@ class compile extends control */ public function browse($repoID = 0, $jobID = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { + $this->loadModel('ci'); if($jobID) { $job = $this->loadModel('job')->getById($jobID); @@ -50,7 +51,7 @@ class compile extends control $this->compile->syncCompile($repoID, $jobID); $this->app->loadLang('job'); - if($repoID) $this->loadModel('ci')->setMenu($repoID); + if($repoID) $this->ci->setMenu($repoID); $this->app->loadClass('pager', true); $pager = new pager($recTotal, $recPerPage, $pageID);