diff --git a/module/execution/control.php b/module/execution/control.php
index 8f1b2d3db6..4abc731974 100644
--- a/module/execution/control.php
+++ b/module/execution/control.php
@@ -2093,7 +2093,7 @@ class execution extends control
$project = $this->project->getById($execution->project);
if(!$project->hasProduct) $this->lang->execution->PO = $this->lang->common->story . $this->lang->execution->owner;
- if($execution->type == 'stage')
+ if($project->model == 'waterfall' or $project->model == 'waterfallplus')
{
$parentStage = $this->project->getByID($execution->parent, 'stage');
@@ -2182,6 +2182,8 @@ class execution extends control
if(!$this->post->executionIDList) return print(js::locate($this->session->executionList, 'parent'));
$executionIDList = $this->post->executionIDList;
$executions = $this->dao->select('*')->from(TABLE_EXECUTION)->where('id')->in($executionIDList)->fetchAll('id');
+ $projects = $this->dao->select('id,project')->from(TABLE_PROJECT)->where('id')->in($executionIDList)->fetchPairs();
+ $projects = $this->dao->select('*')->from(TABLE_PROJECT)->where('id')->in($projects)->fetchAll('id');
$appendPoUsers = $appendPmUsers = $appendQdUsers = $appendRdUsers = array();
foreach($executions as $execution)
@@ -2214,6 +2216,7 @@ class execution extends control
$this->view->position[] = $this->lang->execution->batchEdit;
$this->view->executions = $executions;
$this->view->allProjects = $allProjects;
+ $this->view->projects = $projects;
$this->view->pmUsers = $pmUsers;
$this->view->poUsers = $poUsers;
$this->view->qdUsers = $qdUsers;
diff --git a/module/execution/view/batchedit.html.php b/module/execution/view/batchedit.html.php
index e17011af51..25a0929662 100755
--- a/module/execution/view/batchedit.html.php
+++ b/module/execution/view/batchedit.html.php
@@ -105,7 +105,7 @@
' style='overflow:visible'>QD, "class='form-control picker-select'");?> |
' style='overflow:visible'>RD, "class='form-control picker-select'");?> |
'>
- type == 'stage'):?>
+ project]) and ($projects[$execution->project]->model == 'waterfall' or $projects[$execution->project]->model == 'waterfallplus')):?>
stage->typeList, $executions[$executionID]->attribute, 'class=form-control');?>
execution->lifeTimeList, $executions[$executionID]->lifetime, 'class=form-control');?>
diff --git a/module/execution/view/edit.html.php b/module/execution/view/edit.html.php
index 3f98b17402..6cab24ea30 100644
--- a/module/execution/view/edit.html.php
+++ b/module/execution/view/edit.html.php
@@ -87,19 +87,19 @@
|
- type != 'kanban'):?>
+ type != 'kanban' or $project->model == 'waterfall' or $project->model == 'waterfallplus'):?>
| execution->type;?> |
type != 'stage')
- {
- echo html::select('lifetime', $lang->execution->lifeTimeList, $execution->lifetime, "class='form-control' onchange='showLifeTimeTips()'");
- }
- else
+ if($project->model == 'waterfall' or $project->model == 'waterfallplus')
{
echo $enableOptionalAttr ? html::select('attribute', $lang->stage->typeList, $execution->attribute, "class='form-control chosen'") : zget($lang->stage->typeList, $execution->attribute);
}
+ elseif($execution->type != 'kanban')
+ {
+ echo html::select('lifetime', $lang->execution->lifeTimeList, $execution->lifetime, "class='form-control' onchange='showLifeTimeTips()'");
+ }
?>
|
diff --git a/module/execution/view/view.html.php b/module/execution/view/view.html.php
index 684954cf4f..69b3611ff1 100644
--- a/module/execution/view/view.html.php
+++ b/module/execution/view/view.html.php
@@ -277,7 +277,7 @@
deleted):?>
execution->deleted;?>
- lifetime) and $execution->type != 'kanban'):?>
+ lifetime) and $execution->type != 'kanban' and $project->model != 'waterfall' and $project->model != 'waterfallplus'):?>
execution->lifeTimeList, $execution->lifetime);?>
delay)):?>
|