From 6099d279e617a9aa6edfa894c882ea93beb4ab41 Mon Sep 17 00:00:00 2001 From: daitingting Date: Fri, 1 Sep 2023 02:12:24 +0000 Subject: [PATCH] * Adjust codes. --- module/testcase/control.php | 4 +++- module/testcase/ui/automation.html.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/testcase/control.php b/module/testcase/control.php index c09e4af848..cfa1ef5efe 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -1293,6 +1293,8 @@ class testcase extends control */ public function automation($productID = 0) { + $this->loadModel('zanode'); + if($_POST) { $this->zanode->setAutomationSetting(); @@ -1306,7 +1308,7 @@ class testcase extends control } $this->view->title = $this->lang->zanode->automation; - $this->view->automation = $this->loadModel('zanode')->getPairs(); + $this->view->automation = $this->zanode->getPairs(); $this->view->nodeList = $this->zanode->getAutomationByProduct($productID); $this->view->productID = $productID; $this->view->products = $this->product->getPairs('', 0, '', 'all'); diff --git a/module/testcase/ui/automation.html.php b/module/testcase/ui/automation.html.php index 35b891be29..0d8ee32337 100644 --- a/module/testcase/ui/automation.html.php +++ b/module/testcase/ui/automation.html.php @@ -29,7 +29,7 @@ to::header ) ); -form +formPanel ( !$productID ? formGroup (