* Fix bug#37995

This commit is contained in:
zenggang
2023-08-31 08:20:22 +00:00
parent eeff561c79
commit 0a3de8efff
5 changed files with 26 additions and 5 deletions
+4 -1
View File
@@ -1662,13 +1662,16 @@ class repo extends control
$method = 'review';
}
$params = '';
if($projectID && $method == 'browse') $params = "&branchID=&objectID=$projectID";
/* Get repo group by type. */
$repoType = $module == 'mr' ? 'git' : '';
$repoGroup = $this->repo->getRepoGroup('project', $projectID, $repoType);
$this->view->repoID = $repoID;
$this->view->repoGroup = $repoGroup;
$this->view->link = $this->createLink($module, $method, "repoID=%s");
$this->view->link = $this->createLink($module, $method, "repoID=%s" . $params) . ($projectID ? '#app=project' : '');
$this->display();
}