* Fix bug#14781.

This commit is contained in:
xieqiyu
2021-09-01 13:09:47 +08:00
parent 1c9d3d38c9
commit 29c4191416
2 changed files with 4 additions and 3 deletions

View File

@@ -296,7 +296,7 @@ $lang->execution->menu->settings['subMenu']->products = array('link' => "$lang-
$lang->execution->menu->settings['subMenu']->team = array('link' => "{$lang->team->common}|execution|team|executionID=%s", 'alias' => 'managemembers');
$lang->execution->menu->settings['subMenu']->whitelist = array('link' => "$lang->whitelist|execution|whitelist|executionID=%s", 'subModule' => 'personnel', 'alias' => 'addwhitelist');
$lang->execution->dividerMenu = ',story,build,settings,';
$lang->execution->dividerMenu = ',story,build,';
/* QA menu.*/
$lang->qa->menu = new stdclass();

View File

@@ -1350,9 +1350,10 @@ EOD;
global $lang, $app;
$executionPairs = array();
$userCondition = !$app->user->admin ? " AND `id` IN ({$app->user->view->sprints}) " : '';
$object = $app->dbh->query('SELECT project,type FROM ' . TABLE_EXECUTION . " WHERE `id` = '$executionID'")->fetch();
$orderBy = $object->type == 'stage' ? 'ORDER BY `id` ASC' : 'ORDER BY `id` DESC';
$executionList = $app->dbh->query("SELECT id,name FROM " . TABLE_EXECUTION . " WHERE `project` = '{$object->project}' AND `deleted` = '0' $orderBy")->fetchAll();
$executionList = $app->dbh->query("SELECT id,name FROM " . TABLE_EXECUTION . " WHERE `project` = '{$object->project}' AND `deleted` = '0' $userCondition $orderBy")->fetchAll();
foreach($executionList as $execution)
{
if($execution->id == $executionID) continue;
@@ -1361,7 +1362,7 @@ EOD;
if(empty($executionPairs)) return;
$html = "<li class='dropdown dropdown-hover'><a href='javascript:;' data-toggle='dropdown'>{$lang->more}</a>";
$html = "<li class='divider'></li><li class='dropdown dropdown-hover'><a href='javascript:;' data-toggle='dropdown'>{$lang->more}</a>";
$html .= "<ul class='dropdown-menu'>";
$showCount = 0;