From 8a5421f2affc8edafcde54c912feae4ab00425bb Mon Sep 17 00:00:00 2001 From: liumengyi Date: Wed, 5 Jun 2024 10:03:25 +0800 Subject: [PATCH] + [bug#50445,done,0.5h] append bug story to stories. --- module/bug/zen.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/module/bug/zen.php b/module/bug/zen.php index e383b3c99b..affab84f96 100644 --- a/module/bug/zen.php +++ b/module/bug/zen.php @@ -1023,6 +1023,11 @@ class bugZen extends bug { $stories = $this->story->getProductStoryPairs($productID, $branch, $moduleID, 'active,closed', 'id_desc', 0, 'full', 'story', false); } + if(!isset($stories[$bug->storyID])) + { + $bugStory = $this->story->fetchById($bug->storyID); + $stories[$bug->storyID] = $bugStory->title; + } return $this->updateBug($bug, array('stories' => $stories)); }