* Fix bug #25247.
This commit is contained in:
@@ -38,6 +38,9 @@ class job extends control
|
||||
*/
|
||||
public function browse($repoID = 0, $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1)
|
||||
{
|
||||
$repos = $this->loadModel('repo')->getRepoPairs('devops');
|
||||
if(empty($repos)) $this->locate($this->repo->createLink('create'));
|
||||
|
||||
/* Set session. */
|
||||
$this->loadModel('ci')->setMenu($repoID);
|
||||
|
||||
|
||||
@@ -53,9 +53,10 @@ class repoModel extends model
|
||||
echo(js::alert($this->lang->repo->error->accessDenied));
|
||||
return print(js::locate('back'));
|
||||
}
|
||||
}
|
||||
|
||||
$this->lang->switcherMenu = $this->getSwitcher($repoID);
|
||||
if($repo->SCM != 'Gitlab') unset($this->lang->devops->menu->mr);
|
||||
$this->lang->switcherMenu = $this->getSwitcher($repoID);
|
||||
}
|
||||
|
||||
common::setMenuVars('devops', $repoID);
|
||||
if(!session_id()) session_start();
|
||||
|
||||
Reference in New Issue
Block a user