diff --git a/module/testcase/view/caseheader.html.php b/module/testcase/view/caseheader.html.php index 0908a5a1ad..6927be6b07 100644 --- a/module/testcase/view/caseheader.html.php +++ b/module/testcase/view/caseheader.html.php @@ -45,7 +45,7 @@ if(isset($menuItem->hidden)) continue; $menuType = $menuItem->name; if(!$config->testcase->needReview and empty($config->testcase->forceReview) and $menuType == 'wait') continue; - if($hasBrowsePriv and $menuType == 'QUERY') + if($hasBrowsePriv and $menuType == 'QUERY' and in_array($browseType, array('all', 'needconfirm', 'bysuite'))) { $searchBrowseLink = $this->createLink($currentModule, $currentMethod, $projectParam . "productID=$productID&branch=$branch&browseType=bySearch¶m=%s"); $isBySearch = $browseType == 'bysearch';