From 4af872178ebd53ac391939908afa7d95ac311b65 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 24 Aug 2023 19:40:55 +0800 Subject: [PATCH] Make issue template field template access correct template data (#26698) (#26709) Backport #26698 by @wxiaoguang Regression of #23092, the `{{$field := .}}` was missing during that refactoring. Co-authored-by: wxiaoguang --- templates/repo/issue/fields/checkboxes.tmpl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/repo/issue/fields/checkboxes.tmpl b/templates/repo/issue/fields/checkboxes.tmpl index 80835b649a..035ad8e539 100644 --- a/templates/repo/issue/fields/checkboxes.tmpl +++ b/templates/repo/issue/fields/checkboxes.tmpl @@ -1,10 +1,9 @@
{{template "repo/issue/fields/header" .}} - {{$field := .}} {{range $i, $opt := .item.Attributes.options}}
- +