From 7af7034f026a5ccfa6eca9cd06843a352914f538 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Thu, 25 Mar 2021 10:53:27 +0800 Subject: [PATCH] * Fix a bug. --- module/testcase/control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/testcase/control.php b/module/testcase/control.php index 4e5e2881fb..e5b9426b08 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -42,6 +42,7 @@ class testcase extends control $this->loadModel('qa'); $this->view->products = $this->products = $this->product->getPairs(); + if($this->app->openApp == 'project') $this->view->products = $this->products = $this->loadModel('project')->getProducts($this->session->project, false); if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=testcase"))); }