From 87e879e047f5b6a7bf544a8bbae64d606c52d973 Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 9 Jun 2022 14:34:11 +0800 Subject: [PATCH] * Fix bug #23474,23474. --- extension/lite/kanban/ext/model/lite.php | 11 +++++++++++ extension/lite/task/ext/view/create.html.php | 2 +- module/task/control.php | 2 -- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/extension/lite/kanban/ext/model/lite.php b/extension/lite/kanban/ext/model/lite.php index 3406eb1c33..753502f3f7 100644 --- a/extension/lite/kanban/ext/model/lite.php +++ b/extension/lite/kanban/ext/model/lite.php @@ -5,6 +5,16 @@ public function __construct($appName = '') if($this->app->getModuleName() == 'kanban') $this->lang->kanban->menu = new stdclass(); } +/** + * Get kanban group by execution id. + * + * @param int $executionID + * @param int $browseType + * @param int $groupBy + * @param string $searchValue + * @access public + * @return array + */ public function getKanban4Group($executionID, $browseType, $groupBy, $searchValue = '') { /* Get card data. */ @@ -132,6 +142,7 @@ public function getKanban4Group($executionID, $browseType, $groupBy, $searchValu * @param int $kanbanID * @param string $browseType all|task|bug|story * @param string $orderBy + * @param string $searchValue * @access public * @return array */ diff --git a/extension/lite/task/ext/view/create.html.php b/extension/lite/task/ext/view/create.html.php index f63754c67d..4ca65ab4ad 100644 --- a/extension/lite/task/ext/view/create.html.php +++ b/extension/lite/task/ext/view/create.html.php @@ -101,7 +101,7 @@ task->noticeLinkStory, html::a($this->createLink('story', 'create', "productID=$productID&branch=0&moduleID=0&storyID=0&projectID=$projectID&bugID=0&planID=0&todoID=0&extra=&type=story"), $lang->execution->linkStory, '_blank', 'class="text-primary"'), html::a("javascript:loadStories($execution->id)", $lang->refresh, '', 'class="text-primary"'));?>
- story => empty($stories) ? '': $stories[$task->story]), $task->story, "class='form-control chosen' onchange='setStoryRelated();'");?> + story, "class='form-control chosen' onchange='setStoryRelated();'");?> preview;?>
diff --git a/module/task/control.php b/module/task/control.php index a2c2441628..118eac8e05 100755 --- a/module/task/control.php +++ b/module/task/control.php @@ -242,8 +242,6 @@ class task extends control $stories = $this->story->getExecutionStoryPairs($executionID, 0, 'all', '', 'full', 'unclosed'); - if($this->config->vision == 'lite') $stories = $stories + array('', ''); - /* Get block id of assinge to me. */ $blockID = 0; if(isonlybody())