* [bug#59391,done,1h] fix the execution unlink plan when edit a project.
This commit is contained in:
@@ -1506,7 +1506,7 @@ class projectModel extends model
|
||||
$this->updatePlans($projectID, (array)$this->post->plans); // 更新关联的计划列表。
|
||||
if($oldProject->hasProduct > 0) $this->updateProducts($projectID, (array)$this->post->products, $postProductData); // 更新关联的产品列表。
|
||||
$this->updateTeamMembers($project, $oldProject, zget($_POST, 'teamMembers', array())); // 更新关联的用户信息。
|
||||
if(!empty((array)$postProductData)) $this->updateProductStage($projectID, (string)$oldProject->stageBy, $postProductData); // 更新关联的所有产品的阶段。
|
||||
if(!empty((array)$postProductData) && in_array($oldProject->model, array('waterfall', 'waterfallplus'))) $this->updateProductStage($projectID, (string)$oldProject->stageBy, $postProductData); // 更新关联的所有产品的阶段。
|
||||
|
||||
$this->file->updateObjectID((string)$this->post->uid, $projectID, 'project'); // 通过uid更新文件id。
|
||||
|
||||
@@ -1517,7 +1517,7 @@ class projectModel extends model
|
||||
$unlinkType = array_diff(explode(',', $oldProject->storyType), explode(',', $project->storyType));
|
||||
if($unlinkType) $this->unlinkStoryByType($projectID, $unlinkType);
|
||||
}
|
||||
if(empty($oldProject->multiple) and $oldProject->model != 'waterfall') $this->loadModel('execution')->syncNoMultipleSprint($projectID); // 无迭代的非瀑布项目需要更新。
|
||||
if(empty($oldProject->multiple) and !in_array($oldProject->model, array('waterfall', 'waterfallplus'))) $this->loadModel('execution')->syncNoMultipleSprint($projectID); // 无迭代的非瀑布项目需要更新。
|
||||
|
||||
if(dao::isError()) return false;
|
||||
return common::createChanges($oldProject, $project);
|
||||
|
||||
Reference in New Issue
Block a user