+ Resolve feedback#4998
This commit is contained in:
@@ -475,6 +475,7 @@ class customModel extends model
|
||||
global $lang, $app;
|
||||
if(!isset($lang->$module->featureBar[$method])) return;
|
||||
$queryModule = $module == 'execution' ? 'task' : ($module == 'product' ? 'story' : $module);
|
||||
if($module == 'project' && $method == 'testcase') $queryModule = 'testcase';
|
||||
$shortcuts = $app->dbQuery('select id, title from ' . TABLE_USERQUERY . " where (`account` = '{$app->user->account}' or `common` = '1') AND `module` = '{$queryModule}' AND `shortcut` = '1' order by id")->fetchAll();
|
||||
|
||||
if($shortcuts)
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
$menuType = $menuItem->name;
|
||||
$caseType = isset($caseType) ? $caseType : '';
|
||||
if(!$config->testcase->needReview and empty($config->testcase->forceReview) and $menuType == 'wait') continue;
|
||||
if($hasBrowsePriv and $menuType == 'QUERY' and in_array($browseType, array('all', 'needconfirm', 'bysuite')))
|
||||
if($hasBrowsePriv and $menuType == 'QUERY' and in_array($browseType, array('all', 'needconfirm', 'bysuite', 'bysearch')))
|
||||
{
|
||||
$searchBrowseLink = $this->createLink($currentModule, $currentMethod, $projectParam . "productID=$productID&branch=$branch&browseType=bySearch¶m=%s");
|
||||
$isBySearch = $browseType == 'bysearch';
|
||||
|
||||
Reference in New Issue
Block a user