diff --git a/module/project/control.php b/module/project/control.php index baf1643134..a5887cbd1a 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -915,7 +915,7 @@ class project extends control $whitelist = ''; $acl = 'open'; $plan = new stdClass(); - $productPlan = new stdClass(); + $productPlan = array(); if($copyProjectID) { @@ -969,7 +969,7 @@ class project extends control $this->view->code = $code; $this->view->team = $team; $this->view->products = $products; - $this->view->productPlan = $productPlan; + $this->view->productPlan = array(0 => '') + $productPlan; $this->view->whitelist = $whitelist; $this->view->copyProjectID = $copyProjectID; $this->view->branchGroups = $this->loadModel('branch')->getByProducts(array_keys($products)); diff --git a/module/project/model.php b/module/project/model.php index 0deb04c9a4..87f4bca07e 100644 --- a/module/project/model.php +++ b/module/project/model.php @@ -908,6 +908,8 @@ class projectModel extends model if(($this->session->taskBrowseType) and ($this->session->taskBrowseType != 'bysearch')) $browseType = $this->session->taskBrowseType; } + $this->session->set('taskWithChildren', in_array($browseType, array('unclosed', 'byproject', 'all')) ? false : true); + /* Get tasks. */ $tasks = array(); if($browseType != "bysearch") diff --git a/module/project/view/bug.html.php b/module/project/view/bug.html.php index 14064dc887..5124141717 100644 --- a/module/project/view/bug.html.php +++ b/module/project/view/bug.html.php @@ -17,7 +17,7 @@ Build:' . $build->name . ''; ?>
- + id");?>
diff --git a/module/project/view/create.html.php b/module/project/view/create.html.php index 16853416fa..a1059cf7b0 100644 --- a/module/project/view/create.html.php +++ b/module/project/view/create.html.php @@ -121,7 +121,12 @@ product . "]", $productPlan, $plan->id, "class='form-control'");?> id)?> - + +
+ + +
+ diff --git a/module/project/view/taskheader.html.php b/module/project/view/taskheader.html.php index 285cffeca0..9ebb5cc06f 100644 --- a/module/project/view/taskheader.html.php +++ b/module/project/view/taskheader.html.php @@ -97,7 +97,7 @@