From ac8225544f85f3186dd1424f9a2d0d7b37ad1134 Mon Sep 17 00:00:00 2001 From: zenggang Date: Fri, 29 Apr 2022 02:43:57 +0000 Subject: [PATCH] * Fix refresh jump to other branches --- module/repo/view/browse.html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/repo/view/browse.html.php b/module/repo/view/browse.html.php index 6b2840c36d..cfbd61f832 100644 --- a/module/repo/view/browse.html.php +++ b/module/repo/view/browse.html.php @@ -58,7 +58,7 @@
repo->notice->lastSyncTime . $cacheTime?> - repo->createLink('browse', "repoID=$repoID&branchID=" . helper::safe64Encode($base64BranchID) . "&objectID=$objectID&path=" . $this->repo->encodePath($path) . "&revision=$revision&refresh=1"), " " . $lang->refresh, '', "class='btn btn-primary' data-app={$app->tab}");?> + repo->createLink('browse', "repoID=$repoID&branchID=" . $base64BranchID . "&objectID=$objectID&path=" . $this->repo->encodePath($path) . "&revision=$revision&refresh=1"), " " . $lang->refresh, '', "class='btn btn-primary' data-app={$app->tab}");?> SCM == 'Gitlab' and common::hasPriv('gitlab', 'createBranch')) echo html::a($this->createLink('gitlab', 'createBranch', "gitlabID={$repo->gitlab}&projectID={$repo->project}"), " " . $lang->gitlab->createBranch, '', "class='btn btn-primary'");?>