瀏覽代碼

Fix template error in pull request with deleted head repo (#24192)

Rendering of Allow Edits from Maintainers did not check if the head repo
exists, while other parts of the page handle it gracefully.
tags/v1.20.0-rc0
Brecht Van Lommel 1 年之前
父節點
當前提交
eed6b28fc0
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      templates/repo/issue/view_content/sidebar.tmpl

+ 1
- 1
templates/repo/issue/view_content/sidebar.tmpl 查看文件

@@ -690,7 +690,7 @@
</div>
{{end}}

{{if and .Issue.IsPull .IsIssuePoster (not .Issue.IsClosed)}}
{{if and .Issue.IsPull .IsIssuePoster (not .Issue.IsClosed) .Issue.PullRequest.HeadRepo}}
{{if and (not (eq .Issue.PullRequest.HeadRepo.FullName .Issue.PullRequest.BaseRepo.FullName)) .CanWriteToHeadRepo}}
<div class="ui divider"></div>
<div class="inline field">

Loading…
取消
儲存