Skip to content

Commit 4af8721

Browse files
GiteaBotwxiaoguang
andauthored
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 <[email protected]>
1 parent 508c624 commit 4af8721

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/repo/issue/fields/checkboxes.tmpl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
<div class="field">
22
{{template "repo/issue/fields/header" .}}
3-
{{$field := .}}
43
{{range $i, $opt := .item.Attributes.options}}
54
<div class="field">
65
<div class="ui checkbox">
7-
<input type="checkbox" name="form-field-{{$field.ID}}-{{$i}}" {{if $opt.required}}readonly checked{{end}}>
6+
<input type="checkbox" name="form-field-{{$.item.ID}}-{{$i}}" {{if $opt.required}}readonly checked{{end}}>
87
<label>{{$opt.label}}</label>
98
</div>
109
</div>

0 commit comments

Comments
 (0)