* code for task#1598.

This commit is contained in:
xia0ta0
2013-07-25 09:09:36 +08:00
parent 2d4a058478
commit bf33420c03
9 changed files with 39 additions and 5 deletions
+15
View File
@@ -500,6 +500,21 @@ class testcase extends control
}
}
/**
* Confirm testcase changed.
*
* @param int $caseID
* @access public
* @return void
*/
public function confirmChange($caseID)
{
$case = $this->testcase->getById($caseID);
$this->dao->update(TABLE_TESTRUN)->set('version')->eq($case->version)->where('`case`')->eq($caseID)->exec();
$this->loadModel('action')->create('case', $caseID, 'caseconfirmed', '', $case->version);
die(js::locate(inLink('view', "caseID=$caseID"), 'parent'));
}
/**
* Confirm story changes.
*