From 9cd542f3c7786e2836c7bf0894c4f7c4f368296a Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 1 Nov 2022 12:10:37 +0800 Subject: [PATCH] * code for task #73987. --- module/common/lang/menu.php | 2 +- module/execution/control.php | 2 +- module/execution/js/storykanban.js | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/module/common/lang/menu.php b/module/common/lang/menu.php index 2cbb600428..0c3745fcb5 100644 --- a/module/common/lang/menu.php +++ b/module/common/lang/menu.php @@ -350,7 +350,7 @@ $lang->execution->menu->view = array('link' => "$lang->view|execution|grouptas if($config->edition != 'open') $lang->execution->menu->view = array('link' => "$lang->view|execution|gantt|executionID=%s", 'alias' => 'grouptask,tree,taskeffort,gantt,calendar,relation,maintainrelation'); $lang->execution->menu->storyGroup = array('link' => "{$lang->common->story}|execution|story|executionID=%s",'class' => 'dropdown dropdown-hover', 'subModule' => 'story', 'alias' => 'batchcreate,storykanban'); -$lang->execution->menu->story = array('link' => "$lang->SRCommon|execution|story|executionID=%s", 'subModule' => 'story'); +$lang->execution->menu->story = array('link' => "$lang->SRCommon|execution|story|executionID=%s", 'subModule' => 'story', 'alias' => 'storykanban'); $lang->execution->menu->qa = array('link' => "{$lang->qa->common}|execution|bug|executionID=%s", 'subModule' => 'bug,testcase,testtask,testreport', 'alias' => 'qa,bug,testcase,testtask,testreport'); $lang->execution->menu->devops = array('link' => "{$lang->repo->common}|repo|browse|repoID=0&branchID=&objectID=%s", 'subModule' => 'repo'); $lang->execution->menu->doc = array('link' => "{$lang->doc->common}|doc|tableContents|type=execution&objectID=%s", 'subModule' => 'doc'); diff --git a/module/execution/control.php b/module/execution/control.php index b40c69a52e..19fbbeb0eb 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -2900,7 +2900,7 @@ class execution extends control $this->execution->setMenu($executionID); $execution = $this->loadModel('execution')->getById($executionID); - $stories = $this->loadModel('story')->getExecutionStories($executionID); + $stories = $this->loadModel('story')->getExecutionStories($executionID); $this->loadModel('common')->saveQueryCondition($this->dao->get(), 'story', false); /* Get execution's product. */ diff --git a/module/execution/js/storykanban.js b/module/execution/js/storykanban.js index 72e03dc6f2..e7d1fc7045 100644 --- a/module/execution/js/storykanban.js +++ b/module/execution/js/storykanban.js @@ -4,8 +4,6 @@ $(function() $.cookie('selfClose', 0, {expires:config.cookieLife, path:config.webRoot}); var $kanban = $('#kanban'); - $('#navbar .nav>li[data-id=story]>a').html($('.active [data-id=story]').text() + ''); - var stageMap = new Object(); if(canBeChanged) {