* [task#120961,doing,0.2h] adjust repo check for repo branch btn.

This commit is contained in:
caoyanyi
2024-06-18 19:53:54 +08:00
committed by 田淑杰
parent 6147eccaf3
commit d755d183d9
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -60,7 +60,8 @@ if(!$bug->deleted)
$actions = $operateList['mainActions'];
if(!empty($operateList['suffixActions'])) $actions = array_merge($actions, array(array('type' => 'divider')), $operateList['suffixActions']);
$hasRepo = $this->loadModel('repo')->getListByProduct($bug->product, 'Gitlab,Gitea,Gogs,GitFox', 1);
$this->loadModel('repo');
$hasRepo = $this->repo->getListByProduct($bug->product, implode(',', $config->repo->gitServiceTypeList), 1);
$isExecutionTab = $app->tab == 'execution';
foreach($actions as $key => $action)
{
+2 -1
View File
@@ -178,7 +178,8 @@ $versionBtn = count($versions) > 1 ? to::title(dropdown
if($isInModal) $config->story->actionList['recall']['url'] = str_replace('&from=view&', '&from=modal&', $config->story->actionList['recall']['url']);
if($story->status == 'changing') $config->story->actionList['recall']['text'] = $lang->story->recallChange;
$hasRepo = $this->loadModel('repo')->getListByProduct($story->product, 'Gitlab,Gitea,Gogs,GitFox', 1);
$this->loadModel('repo');
$hasRepo = $this->repo->getListByProduct($story->product, implode(',', $config->repo->gitServiceTypeList), 1);
$actions = $story->deleted ? array() : $this->loadModel('common')->buildOperateMenu($story);
$hasDivider = !empty($actions['mainActions']) && !empty($actions['suffixActions']);
if(!empty($actions)) $actions = array_merge($actions['mainActions'], array(array('type' => 'divider')), $actions['suffixActions']);