* [task#125728,done,6h,0h] Finish add autoschedule wg.

This commit is contained in:
wangyuting
2024-10-08 09:44:22 +08:00
committed by 胡方舟
parent ee00fcd0c2
commit 7302803ef8
12 changed files with 373 additions and 353 deletions
+4 -2
View File
@@ -67,8 +67,10 @@ class programplanZen extends programplan
$plan->parent = $parentID ? $parentID : $projectID;
$plan->order = (int)array_shift($orders);
$plan->hasProduct = $project->hasProduct;
if(!empty($parentID) and !empty($parentStage) and $parentStage->attribute != 'mix') $plan->attribute = $parentStage->attribute;;
if(!empty($parentID) and !empty($parentStage)) $plan->acl = $parentStage->acl;
if(empty($plan->days)) $plan->days = helper::diffDate($plan->end, $plan->begin) + 1;
if(!empty($parentID) && !empty($parentStage) && $parentStage->attribute != 'mix') $plan->attribute = $parentStage->attribute;;
if(!empty($parentID) && !empty($parentStage)) $plan->acl = $parentStage->acl;
if(in_array($this->config->edition, array('max', 'ipd')) && !dao::isError())
{