diff --git a/module/story/model.php b/module/story/model.php index bc0d4e3d03..f89ba84a50 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -636,7 +636,6 @@ class storyModel extends model ->remove('files,labels,comment,contactListMenu,stages') ->get(); if(isset($story->plan) and is_array($story->plan)) $story->plan = trim(join(',', $story->plan), ','); - if(empty($_POST['product'])) $story->branch = $oldStory->branch; if(isset($_POST['branch']) and $_POST['branch'] == 0) $story->branch = 0; if(!empty($_POST['stages'])) { diff --git a/module/story/view/edit.html.php b/module/story/view/edit.html.php index 75cc7f4ec5..de0eca310f 100644 --- a/module/story/view/edit.html.php +++ b/module/story/view/edit.html.php @@ -80,6 +80,13 @@ + + + product->branch;?> + +
type != 'normal') echo html::select('branch', $branches, $story->branch, "onchange='loadBranch();' class='form-control chosen control-branch'");?>
+ + story->module;?>