* Fix notice of zanode.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
<?php js::set('browseType', $browseType);?>
|
||||
<?php js::set('moduleID', $moduleID);?>
|
||||
<?php js::set('case2RunMap', $case2RunMap);?>
|
||||
<?php js::set('taskID', $taskID);?>
|
||||
<?php js::set('automation', !empty($automation) ? $automation->id : 0);?>
|
||||
<?php $this->app->loadLang('zanode');?>
|
||||
<?php js::set('runCaseConfirm', $lang->zanode->runCaseConfirm);?>
|
||||
|
||||
@@ -618,7 +618,7 @@ class zanode extends control
|
||||
if($_POST)
|
||||
{
|
||||
$caseIDList = $_POST['caseIDList'];
|
||||
$runIDList = $_POST['runIDList'];
|
||||
$runIDList = empty($_POST['runIDList']) ? array() : $_POST['runIDList'];
|
||||
$script = $this->zanode->getAutomationByID($scriptID);
|
||||
$cases = $this->loadModel('testcase')->getByList($caseIDList);
|
||||
|
||||
@@ -635,7 +635,7 @@ class zanode extends control
|
||||
$runIDListArray = explode(',', $runIDList);
|
||||
$case2RunMap = array();
|
||||
|
||||
foreach($caseIDListArray as $index => $caseID) $case2RunMap[$caseID] = $runIDListArray[$index];
|
||||
foreach($caseIDListArray as $index => $caseID) $case2RunMap[$caseID] = empty($runIDListArray[$index]) ? 0 : $runIDListArray[$index];
|
||||
|
||||
foreach($cases as $id => $case)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user