* finish task #1396.

This commit is contained in:
wyd621
2013-08-19 15:43:35 +08:00
parent 70d6a157ae
commit 67a9c68636
4 changed files with 45 additions and 76 deletions
-13
View File
@@ -814,8 +814,6 @@ class testcase extends control
$endField = $field;
$caseData = array();
$stepData = array();
$hasEdit = false;
$hasNew = false;
while($csv)
{
$case = new stdclass();
@@ -889,15 +887,6 @@ class testcase extends control
$csv = substr($csv, $pos + strlen($delimiter));
}
if(!empty($case->id))
{
$hasEdit = true;
}
else
{
$hasNew = true;
}
$caseData[$row] = $case;
unset($case);
$row++;
@@ -919,8 +908,6 @@ class testcase extends control
$this->view->stepData = $stepData;
$this->view->productID = $productID;
$this->view->product = $this->products[$productID];
$this->view->hasEdit = $hasEdit;
$this->view->hasNew = $hasNew;
$this->display();
}
}