From fea372ea26efdcaee9e6d742429aeeee57662529 Mon Sep 17 00:00:00 2001 From: mayue Date: Mon, 29 Nov 2021 15:45:56 +0800 Subject: [PATCH] * Finish task #44987,44988,44989. --- module/story/model.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/module/story/model.php b/module/story/model.php index c81aeb462c..f38e087f5b 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -3717,7 +3717,14 @@ class storyModel extends model echo ""; break; case 'title': - $showBranch = isset($this->config->product->browse->showBranch) ? $this->config->product->browse->showBranch : 1; + if($this->app->tab == 'project') + { + $showBranch = isset($this->config->projectstory->story->showBranch) ? $this->config->projectstory->story->showBranch : 1; + } + else + { + $showBranch = isset($this->config->product->browse->showBranch) ? $this->config->product->browse->showBranch : 1; + } if($storyType == 'requirement') echo 'SR '; if($story->parent > 0 and isset($story->parentName)) $story->title = "{$story->parentName} / {$story->title}"; if(isset($branches[$story->branch]) and $showBranch) echo "{$branches[$story->branch]} ";