This commit is contained in:
tianshujie98
2020-09-27 09:50:31 +08:00
parent 07c3ef43e9
commit ffc66d3f17
+4
View File
@@ -838,6 +838,10 @@ class testcaseModel extends model
if(!dao::isError())
{
$isLibCase = ($oldCase->lib and empty($oldCase->product));
$titleChanged = ($case->title != $oldCase->title);
if($isLibCase and $titleChanged) $this->dao->update(TABLE_CASE)->set('`title`')->eq($case->title)->where('`fromCaseID`')->eq($caseID)->exec();
$this->executeHooks($caseID);
unset($oldCase->steps);