* [highgo] Fix bug #66690.

This commit is contained in:
朱金勇
2025-11-04 17:24:59 +08:00
committed by Gitfox
parent cb6ac59e40
commit 78f0db744b
+2 -2
View File
@@ -3015,7 +3015,7 @@ class executionModel extends model
$executionStories = $this->dao->select('project,story')->from(TABLE_PROJECTSTORY)->where('story')->eq($storyID)->andWhere('project')->in(array_keys($executions))->fetchAll();
if(!empty($executionStories)) return dao::$errors[] = $this->lang->execution->notAllowedUnlinkStory;
}
$this->dao->delete()->from(TABLE_PROJECTSTORY)->where('project')->eq($executionID)->andWhere('story')->eq($storyID)->limit(1)->exec();
$this->dao->delete()->from(TABLE_PROJECTSTORY)->where('project')->eq($executionID)->andWhere('story')->eq($storyID)->exec();
/* Resolve TABLE_KANBANCELL's field cards. */
if($execution->type == 'kanban')
@@ -3119,7 +3119,7 @@ class executionModel extends model
/* Sync unlink case in no multiple execution. */
if(empty($execution->multiple) && $execution->type != 'project')
{
$this->dao->delete()->from(TABLE_PROJECTCASE)->where('project')->eq($execution->project)->andWhere('`case`')->eq($caseID)->limit(1)->exec();
$this->dao->delete()->from(TABLE_PROJECTCASE)->where('project')->eq($execution->project)->andWhere('`case`')->eq($caseID)->exec();
$this->action->create('case', $caseID, 'unlinkedfromproject', '', $execution->project);
}
}