From 3747df5e06fb93628412693934ae9333ed965b4b Mon Sep 17 00:00:00 2001 From: chaideqing Date: Tue, 11 Oct 2022 16:18:14 +0800 Subject: [PATCH 1/2] * resolve feedback #1066 --- module/story/view/view.html.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index 034e14830c..b9ae0328d5 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -477,7 +477,8 @@ title'>" . html::a($this->createLink('bug', 'view', "bugID=$bug->id", '', true), "#$bug->id $bug->title", '', "class='iframe' data-width='80%'") . ''; + $bugInfo = "#$bug->id" . ' ' . $this->lang->bug->statusList[$bug->status] . ' ' . $bug->title; + echo "
  • " . html::a($this->createLink('bug', 'view', "bugID=$bug->id", '', true), $bugInfo, '', "class='iframe' data-width='80%'") . '
  • '; } ?> From 7dd705342c24a6a4fffb65a887d0c9c23860cc0d Mon Sep 17 00:00:00 2001 From: chaideqing Date: Wed, 12 Oct 2022 15:34:48 +0800 Subject: [PATCH 2/2] * fix No bug-lang in open source version --- module/story/control.php | 1 + module/story/view/view.html.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/control.php b/module/story/control.php index 7a04436294..c48c868583 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1313,6 +1313,7 @@ class story extends control $this->view->param = $param; $this->view->builds = $this->loadModel('build')->getStoryBuilds($storyID); $this->view->releases = $this->loadModel('release')->getStoryReleases($storyID); + $this->view->bugStatusList = $this->loadModel('bug')->lang->bug->statusList; $this->display(); } diff --git a/module/story/view/view.html.php b/module/story/view/view.html.php index b9ae0328d5..1799e212c8 100644 --- a/module/story/view/view.html.php +++ b/module/story/view/view.html.php @@ -477,7 +477,7 @@ id" . ' ' . $this->lang->bug->statusList[$bug->status] . ' ' . $bug->title; + $bugInfo = "#$bug->id" . ' ' . $bugStatusList[$bug->status] . ' ' . $bug->title; echo "
  • " . html::a($this->createLink('bug', 'view', "bugID=$bug->id", '', true), $bugInfo, '', "class='iframe' data-width='80%'") . '
  • '; } ?>