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 (