Merge branch 'sprint/fixbug_liumengyi_31827' into 'master'

* Fix bug #31827.

See merge request easycorp/zentaopms!7151
This commit is contained in:
孙广明
2023-03-08 01:27:19 +00:00
2 changed files with 9 additions and 2 deletions
+7
View File
@@ -2503,6 +2503,13 @@ class projectModel extends model
$this->dao->update(TABLE_PROJECT)->set('division')->eq('1')->where('id')->eq((int)$projectID)->exec();
$this->dao->update(TABLE_EXECUTION)->set('division')->eq('1')->where('project')->eq((int)$projectID)->exec();
}
$project = $this->getByID($projectID);
if(!empty($project) and ($project->model == 'waterfall' or $project->model == 'waterfallplus') and empty($project->division) and !empty($executions))
{
$this->loadModel('execution');
foreach($executions as $executionID) $this->execution->updateProducts($executionID);
}
}
$oldProductKeys = array_keys($oldProjectProducts);