mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
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>
This commit is contained in:
parent
581a563cac
commit
08fe6f8c7e
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue