diff --git a/module/build/control.php b/module/build/control.php index 147c629a53..b918fdf58e 100644 --- a/module/build/control.php +++ b/module/build/control.php @@ -179,6 +179,7 @@ class build extends control { $branchTagOption[$branchInfo->id] = $branchInfo->name . ($branchInfo->status == 'closed' ? ' (' . $this->lang->branch->statusList['closed'] . ')' : ''); } + if(!isset($branchTagOption[$build->branch])) $branchTagOption[$build->branch] = $this->branch->getById($build->branch, 0, 'name'); foreach($productGroups as $product) $products[$product->id] = $product->name; diff --git a/module/story/control.php b/module/story/control.php index fcfcb29835..64527571e3 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -602,6 +602,7 @@ class story extends control $this->view->branches = $branches; /* When the user is product owner or add story in project or not set review, the default is not to review. */ $this->view->needReview = ($this->app->user->account == $product->PO || $executionID > 0 || $this->config->story->needReview == 0) ? 0 : 1; + $this->view->executionID = $executionID; $this->display(); } diff --git a/module/story/view/batchcreate.html.php b/module/story/view/batchcreate.html.php index 3b9d1fb6ef..13876bf8a5 100755 --- a/module/story/view/batchcreate.html.php +++ b/module/story/view/batchcreate.html.php @@ -15,7 +15,7 @@

lang->story->subdivide : $this->lang->story->batchCreate;?>

- createLink('file', 'uploadImages', 'module=story¶ms=' . helper::safe64Encode("productID=$productID&branch=$branch&moduleID=$moduleID&storyID=$storyID&executionID=&plan=&type=$type")), $lang->uploadImages, '', "data-toggle='modal' data-type='iframe' class='btn btn-primary' data-width='70%'")?> + createLink('file', 'uploadImages', 'module=story¶ms=' . helper::safe64Encode("productID=$productID&branch=$branch&moduleID=$moduleID&storyID=$storyID&executionID=$executionID&plan=&type=$type")), $lang->uploadImages, '', "data-toggle='modal' data-type='iframe' class='btn btn-primary' data-width='70%'")?> createLink('custom', 'ajaxSaveCustomFields', 'module=story§ion=custom&key=batchCreateFields')?> @@ -66,7 +66,7 @@ '>story->keywords;?> story->getFlowExtendFields(); - foreach($extendFields as $extendField) + foreach($extendFields as $extendField) { $required = strpos(",$extendField->rules,", ',1,') !== false ? 'required' : ''; echo "{$extendField->name}"; @@ -114,9 +114,9 @@
'> - loadModel('flow'); - foreach($extendFields as $extendField) + foreach($extendFields as $extendField) { $object = new stdclass(); $object->{$extendField->field} = $extendField->default;