diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-02-14 17:18:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-14 09:18:55 +0000 |
commit | 08fe6f8c7ee4b446ae489843414d237cf3e458b5 (patch) | |
tree | 3856aa0af03cdf698e3ac7e069d7d2e50ea968b1 /routers/web/repo/cherry_pick.go | |
parent | 581a563cac5e910510f4f5cc54ccb4478193846f (diff) | |
download | gitea-08fe6f8c7ee4b446ae489843414d237cf3e458b5.tar.gz gitea-08fe6f8c7ee4b446ae489843414d237cf3e458b5.zip |
Fix broken cancel button link on patch page (#18718)
* Fix broken cacnel button link on patch page
* remove treepath="patch" elsewhere too
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'routers/web/repo/cherry_pick.go')
-rw-r--r-- | routers/web/repo/cherry_pick.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/cherry_pick.go b/routers/web/repo/cherry_pick.go index 1b0d8452e2..eb22809348 100644 --- a/routers/web/repo/cherry_pick.go +++ b/routers/web/repo/cherry_pick.go @@ -50,7 +50,7 @@ func CherryPick(ctx *context.Context) { ctx.Data["RequireHighlightJS"] = true canCommit := renderCommitRights(ctx) - ctx.Data["TreePath"] = "patch" + ctx.Data["TreePath"] = "" if canCommit { ctx.Data["commit_choice"] = frmCommitChoiceDirect |