Merge branch 'sprint/fixbug_liumengyi_31827' into 'master'
* Fix bug #31827. See merge request easycorp/zentaopms!7151
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user