* Add case change tips.

This commit is contained in:
Yagami
2019-11-19 11:01:13 +08:00
parent d59f9aa38a
commit a0ca607022
3 changed files with 16 additions and 7 deletions
+3 -2
View File
@@ -993,11 +993,12 @@ class testcase extends control
* @access public
* @return void
*/
public function confirmChange($caseID)
public function confirmChange($caseID, $from = 'view')
{
$case = $this->testcase->getById($caseID);
$this->dao->update(TABLE_TESTRUN)->set('version')->eq($case->version)->where('`case`')->eq($caseID)->exec();
die(js::locate(inLink('view', "caseID=$caseID"), 'parent'));
if($from == 'view') die(js::locate(inLink('view', "caseID=$caseID"), 'parent'));
die(js::reload('parent'));
}
/**