diff --git a/module/testtask/view/caseheader.html.php b/module/testtask/view/caseheader.html.php index 6a7d5bba80..ed1ffa1f56 100644 --- a/module/testtask/view/caseheader.html.php +++ b/module/testtask/view/caseheader.html.php @@ -23,20 +23,12 @@ if($hasGroupPriv and $config->global->flow != 'onlyTest') { - echo "
"; - $active = $browseType == 'group' ? 'btn-active-text' : ''; - $groupBy = isset($groupBy) ? $groupBy : ''; - $current = zget($lang->testcase->groups, isset($groupBy) ? $groupBy : '', ''); - if(empty($current)) $current = $lang->testcase->groups['']; - echo html::a('javascript:;', "{$current} ", '', "class='btn btn-link $active' data-toggle='dropdown'"); - echo "
'; + $groupBy = isset($groupBy) ? $groupBy : ''; + $active = !empty($groupBy) ? 'btn-active-text' : ''; + + echo "
"; + echo html::a($this->createLink('testtask', 'groupCase', "taskID=$taskID&groupBy=story"), "{$lang->testcase->groupByStories}", '', "class='btn btn-link $active'"); + echo '
'; } if($this->methodName == 'cases') echo "{$lang->testcase->bySearch}";