diff --git a/module/programplan/control.php b/module/programplan/control.php
index 862a8154ad..7e62c6af51 100644
--- a/module/programplan/control.php
+++ b/module/programplan/control.php
@@ -179,13 +179,13 @@ class programplan extends control
$executions = !empty($planID) ? $this->loadModel('execution')->getChildExecutions($planID, 'order_asc') : array();
$plans = $this->programplan->getStage($planID ? $planID : $projectID, $this->productID, 'parent', 'order_asc');
- if(!empty($planID) and !empty($plans) and $project->model == 'waterfallplus')
+ if(!empty($planID) and !empty($plans) and in_array($project->model, array('ipd', 'waterfallplus')))
{
$executionType = 'stage';
unset($this->lang->programplan->typeList['agileplus']);
}
- if(!empty($planID) and !empty($executions) and empty($plans) and $project->model == 'waterfallplus')
+ if(!empty($planID) and !empty($executions) and empty($plans) and in_array($project->model, array('ipd', 'waterfallplus')))
{
$executionType = 'agileplus';
unset($this->lang->programplan->typeList['stage']);
diff --git a/module/programplan/model.php b/module/programplan/model.php
index f2ec6411d5..f9a4a7ebf7 100755
--- a/module/programplan/model.php
+++ b/module/programplan/model.php
@@ -439,7 +439,7 @@ class programplanModel extends model
if($data->start_date) $data->start_date = date('d-m-Y', strtotime($data->start_date));
- if($selectCustom && strpos($selectCustom, "point") !== false) $datas['data'][$data->id] = $data;
+ if($selectCustom && strpos($selectCustom, "point") !== false && !$plan->parent) $datas['data'][$data->id] = $data;
}
}
}
diff --git a/module/programplan/view/create.html.php b/module/programplan/view/create.html.php
index c09a3dceee..acddc2e0f7 100644
--- a/module/programplan/view/create.html.php
+++ b/module/programplan/view/create.html.php
@@ -43,7 +43,7 @@
- model == 'waterfallplus'):?>
+ model, array('waterfallplus', 'ipd'))):?>
programplan->subPlanManage . ':'?>
@@ -119,7 +119,7 @@
%
-
'>model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, $stage->type, "class='form-control'") : zget($lang->stage->typeList, $programPlan->attribute);?> |
+
'>model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, $stage->type, "class='form-control'") : ($project->model == 'ipd' ? zget($lang->stage->ipdTypeList, $programPlan->attribute) : zget($lang->stage->typeList, $programPlan->attribute));?> |
'>execution->aclList, 'open', "class='form-control' $class");?> |
>programplan->milestoneList, 0);?> |
|
@@ -152,7 +152,7 @@
%
-
'>model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, $plan->attribute, "class='form-control'") : zget($lang->stage->typeList, $programPlan->attribute);?> |
+
'>model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, $plan->attribute, "class='form-control'") : ($project->model == 'ipd' ? zget($lang->stage->ipdTypeList, $programPlan->attribute) : zget($lang->stage->typeList, $programPlan->attribute));?> |
>execution->aclList, $plan->acl, "class='form-control' $class");?> |
>programplan->milestoneList, $plan->milestone, $disabled);?> |
|
@@ -184,7 +184,7 @@
%
-
'>model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, '', "class='form-control'") : zget($project->model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, $programPlan->attribute);?> |
+
'>model == 'ipd' ? $lang->stage->ipdTypeList : $lang->stage->typeList, '', "class='form-control'") : ($project->model == 'ipd' ? zget($lang->stage->ipdTypeList, $programPlan->attribute) : zget($lang->stage->typeList, $programPlan->attribute));?> |
>execution->aclList, empty($programPlan) ? 'open' : $programPlan->acl, "class='form-control' $class");?> |
>programplan->milestoneList, 0);?> |
|
@@ -229,7 +229,7 @@
%
-