diff --git a/module/testcase/model.php b/module/testcase/model.php index 4cf15764ef..515fba839d 100644 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -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);