From 77d98ca9ba6d38345421199d8ffeb9280effbbad Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Fri, 25 Oct 2019 09:55:13 +0800 Subject: [PATCH] * Finish task #2817. --- module/testcase/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index c90a495de1..b16e4960b7 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -1433,7 +1433,7 @@ class testcase extends control $this->testcase->setMenu($this->products, $productID, $branch); - $libraries = $this->loadModel('testsuite')->getLibraries(); + $libraries = $this->loadModel('caselib')->getLibraries(); if(empty($libraries)) { echo js::alert($this->lang->testcase->noLibrary); @@ -1466,7 +1466,7 @@ class testcase extends control $this->view->libID = $libID; $this->view->productID = $productID; $this->view->branch = $branch; - $this->view->cases = $this->testsuite->getNotImportedCases($productID, $libID, $orderBy, $pager, $browseType, $queryID); + $this->view->cases = $this->loadModel('testsuite')->getNotImportedCases($productID, $libID, $orderBy, $pager, $browseType, $queryID); $this->view->modules = $this->loadModel('tree')->getOptionMenu($productID, 'case', 0, $branch); $this->view->libModules = $this->tree->getOptionMenu($libID, 'caselib'); $this->view->pager = $pager;