diff --git a/module/story/control.php b/module/story/control.php index d7d13be58d..e2ac4458ee 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -253,6 +253,7 @@ class story extends control $this->view->position[] = $this->lang->story->common; $this->view->position[] = $this->lang->story->batchCreate; $this->view->products = $products; + $this->view->product = $product; $this->view->moduleID = $moduleID; $this->view->moduleOptionMenu = $moduleOptionMenu; $this->view->plans = $plans; @@ -264,6 +265,7 @@ class story extends control $this->view->storyTitle = $title; $this->view->spec = $spec; $this->view->branch = $branch; + $this->view->branchGroups = $this->loadModel('branch')->getByProducts($productID); $this->display(); } diff --git a/module/story/view/batchcreate.html.php b/module/story/view/batchcreate.html.php index 0b082f2a6c..450779ef0c 100644 --- a/module/story/view/batchcreate.html.php +++ b/module/story/view/batchcreate.html.php @@ -14,7 +14,11 @@
icons['story']);?> - icons['batchCreate']);?> story->batchCreate;?> + + icons['batchCreate']);?> + story->batchCreate;?> + type !== 'normal') echo '' . $branchGroups[$productID][$branch] . '';?> +
createLink('file', 'uploadImages', 'module=story¶ms=' . helper::safe64Encode("productID=$productID&moduleID=$moduleID")), $lang->uploadImages, '', "data-toggle='modal' data-type='iframe' class='btn' data-width='600px'")?> pasteText, "data-toggle='myModal'")?>