* [task#125728,done,6h,0h] Finish add autoschedule wg.
This commit is contained in:
@@ -255,11 +255,14 @@ $fnGenerateDefaultData = function() use ($config, $plans, $planID, $stages, $exe
|
||||
$item->order = $plan->order;
|
||||
$item->parallel = $plan->parallel;
|
||||
$item->point = implode(',', $points);
|
||||
$plan->disabled = !isset($plan->setMilestone);
|
||||
$plan->setMilestone = isset($plan->setMilestone) ? $plan->setMilestone : false;
|
||||
$plan->point = implode(',', $points);
|
||||
if(in_array($config->edition, array('max', 'ipd')) && $executionType == 'stage')
|
||||
{
|
||||
$item->output = empty($plan->output) ? 0 : explode(',', $plan->output);
|
||||
$plan->output = empty($plan->output) ? 0 : explode(',', $plan->output);
|
||||
}
|
||||
$items[] = $item;
|
||||
$items[] = $plan;
|
||||
}
|
||||
|
||||
return $items;
|
||||
|
||||
@@ -123,6 +123,7 @@ formPanel
|
||||
set::required(true),
|
||||
inputGroup
|
||||
(
|
||||
setID('dateBox'),
|
||||
datepicker(set::name('begin'), set::value($plan->begin)),
|
||||
$lang->project->to,
|
||||
datepicker(set::name('end'), set::value($plan->end))
|
||||
|
||||
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user