From fff023bf282db9fbdc154680b67485c9745fbe0d Mon Sep 17 00:00:00 2001 From: Yagami <976204163@qq.com> Date: Fri, 12 Mar 2021 15:45:17 +0800 Subject: [PATCH] * Add execution testcase method. --- module/execution/control.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/module/execution/control.php b/module/execution/control.php index 0962089abf..f47840c91a 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -922,6 +922,12 @@ class execution extends control $this->showModuleMenu(); $this->commonAction($executionID); + $products = $this->execution->getProducts($executionID, false); + if(empty($products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=testcase"))); + + $productID = $this->loadModel('product')->saveState($productID, $products); + $this->product->setMenu($products, $productID); + $this->view->title = $this->lang->execution->testcase; $this->view->executionID = $executionID; $this->view->productID = $productID;