From aecbd58d24b97412ab706a3cccdd4dceef4d41be Mon Sep 17 00:00:00 2001 From: zhouxin Date: Mon, 21 Feb 2022 03:07:12 +0000 Subject: [PATCH] Tmp. --- module/story/control.php | 5 ++++- module/story/view/batchcreate.html.php | 10 +++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index 24f65342ef..f743649d37 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -325,6 +325,9 @@ class story extends control $this->view->customFields = $customFields; $this->view->showFields = $this->config->story->custom->createFields; + $reviewers = $this->user->getPairs('noclosed|nodeleted', '', 0, $reviewers); + $reviewers['ditto'] = $this->lang->story->ditto; + $this->view->title = $product->name . $this->lang->colon . $this->lang->story->create; $this->view->position[] = html::a($this->createLink('product', 'browse', "product=$productID&branch=$branch"), $product->name); $this->view->position[] = $this->lang->story->common; @@ -345,7 +348,7 @@ class story extends control $this->view->stories = $this->story->getParentStoryPairs($productID); $this->view->productID = $productID; $this->view->product = $product; - $this->view->reviewers = $this->user->getPairs('noclosed|nodeleted', '', 0, $reviewers); + $this->view->reviewers = $reviewers; $this->view->objectID = $objectID; $this->view->estimate = $estimate; $this->view->storyTitle = $title; diff --git a/module/story/view/batchcreate.html.php b/module/story/view/batchcreate.html.php index f7c1943dc5..46baae21af 100644 --- a/module/story/view/batchcreate.html.php +++ b/module/story/view/batchcreate.html.php @@ -95,7 +95,12 @@ story->categoryList, 'feature', "class='form-control chosen'");?> ' style='overflow:visible'> '> - '> + '> + {$lang->story->ditto}"; + ?> + '> control == 'select' or $extendField->control == 'multi-select') ? " style='overflow:visible'" : '') . ">" . $this->loadModel('flow')->getFieldControl($extendField, '', $extendField->field . '[$id]') . "";?> @@ -123,11 +128,14 @@ $(function() idEnd: , rowCreator: function($row, index) { + console.log($row); + console.log(index); $row.find('select.chosen,select.picker-select').each(function() { var $select = $(this); if($select.hasClass('picker-select')) $select.parent().find('.picker').remove(); if(index == 0) $select.find("option[value='ditto']").remove(); + if(index == 0) $select.find("#dittoBox").remove(); if(index > 0) $select.val('ditto'); if($select.attr('id').indexOf('branch') >= 0) $select.val('') $select.chosen();