diff --git a/module/story/model.php b/module/story/model.php index 9cf323eb29..a1b0850c6a 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -3661,9 +3661,10 @@ class storyModel extends model echo ""; break; case 'title': + $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($story->branch and isset($branches[$story->branch]) and !empty($this->config->product->browse->showBranch)) echo "{$branches[$story->branch]} "; + if($story->branch and isset($branches[$story->branch]) and $showBranch) echo "{$branches[$story->branch]} "; if($story->module and isset($modulePairs[$story->module])) echo "{$modulePairs[$story->module]} "; if($story->parent > 0) echo '' . $this->lang->story->childrenAB . ' '; echo $canView ? html::a($storyLink, $story->title, '', "style='color: $story->color' data-app='$tab'") : "{$story->title}";