@@ -116,10 +116,11 @@ if($this->app->tab == 'project') js::set('objectID', $projectID);
-
+ multiple) ? 'hidden' : '';?> +
bug->kanban : $lang->bug->execution;?> - +
diff --git a/module/bug/view/edit.html.php b/module/bug/view/edit.html.php index 1ef01b1820..c2fd0b8526 100644 --- a/module/bug/view/edit.html.php +++ b/module/bug/view/edit.html.php @@ -207,16 +207,16 @@ if($this->app->tab == 'project') js::set('objectID', $bug->project);
systemMode == 'class' ? $lang->bug->legendExecStoryTask : $lang->bug->legendPRJExecStoryTask;?>
- systemMode == 'new'):?> - + multiple):?> +
bug->project;?> project, "class='form-control chosen' onchange='loadProductExecutions($bug->product, this.value)'");?>
bug->execution;?> execution, "class='form-control chosen' onchange='loadExecutionRelated(this.value)'");?>
bug->story;?>
story, "class='form-control chosen'");?>
diff --git a/module/bug/view/view.html.php b/module/bug/view/view.html.php index 12b5c68b51..73442c8ef7 100644 --- a/module/bug/view/view.html.php +++ b/module/bug/view/view.html.php @@ -106,7 +106,7 @@
@@ -279,16 +279,16 @@
- systemMode == 'new'):?> - + multiple):?> +
bug->project;?> project) echo html::a($this->createLink('project', 'view', "projectID=$bug->project"), $bug->projectName);?>
model) and $project->model == 'kanban') ? $lang->bug->kanban : $lang->bug->execution;?> execution) echo html::a($this->createLink('execution', 'browse', "executionID=$bug->execution"), $bug->executionName);?>
bug->story;?> diff --git a/module/datatable/control.php b/module/datatable/control.php index db7b938ff2..9a45be059f 100644 --- a/module/datatable/control.php +++ b/module/datatable/control.php @@ -104,10 +104,9 @@ class datatable extends control if($moduleName == 'project' and $method == 'bug') { $project = $this->loadModel('project')->getByID($this->session->project); - if(!$project->hasProduct and $project->model != 'scrum') - { - unset($cols['plan']); - } + + if(!$project->multiple) unset($cols['execution']); + if(!$project->hasProduct and $project->model != 'scrum') unset($cols['plan']); } if($moduleName == 'execution' and $method == 'bug') diff --git a/module/execution/model.php b/module/execution/model.php index 323eea12f3..32081f4a5e 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -336,6 +336,7 @@ class executionModel extends model ->setDefault('lastEditedBy', $this->app->user->account) ->setDefault('lastEditedDate', helper::now()) ->setDefault('team', $this->post->name) + ->setDefault('parent', $this->post->project) ->setIF($this->post->heightType == 'auto', 'displayCards', 0) ->setIF(!isset($_POST['whitelist']), 'whitelist', '') ->setIF($this->post->acl == 'open', 'whitelist', '') diff --git a/module/project/control.php b/module/project/control.php index 84aa4924f5..49c41a6998 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -1149,6 +1149,8 @@ class project extends control $queryID = ($type == 'bysearch') ? (int)$param : 0; $products = $this->product->getProducts($projectID); + if(!$project->multiple) unset($this->config->bug->datatable->fieldList['execution']); + if(!$project->hasProduct) { unset($this->config->bug->search['fields']['product']);