diff --git a/module/story/control.php b/module/story/control.php index fdc90208ab..dfea927b66 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -341,6 +341,7 @@ class story extends control $verify = htmlSpecialString($story->verify); $keywords = $story->keywords; $mailto = $story->mailto; + $category = $story->category; } if($bugID > 0) @@ -475,6 +476,7 @@ class story extends control $this->view->URS = $storyType == 'story' ? $this->story->getProductStoryPairs($productID, $branch, $moduleIdList, 'changing,active,reviewing', 'id_desc', 0, '', 'requirement') : ''; $this->view->needReview = ($this->app->user->account == $product->PO or $objectID > 0 or $this->config->story->needReview == 0 or !$this->story->checkForceReview()) ? "checked='checked'" : ""; $this->view->type = $storyType; + $this->view->category = $category ? $category : 'feature'; $this->display(); } diff --git a/module/story/view/create.html.php b/module/story/view/create.html.php index fc17f87f1d..f0b00295fa 100644 --- a/module/story/view/create.html.php +++ b/module/story/view/create.html.php @@ -265,7 +265,7 @@ foreach(explode(',', $config->story->create->requiredFields) as $field)
story->category;?> - story->categoryList, 'feature', "class='form-control chosen'");?> + story->categoryList, $category, "class='form-control chosen'");?>