* Adjust codes.

This commit is contained in:
daitingting
2023-09-01 02:12:24 +00:00
parent 0e94a6cf36
commit 6099d279e6
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -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');