Skip to content

Commit 4de2244

Browse files
authored
Make issue template field template access correct template data (#26698)
Regression of #23092, the `{{$field := .}}` was missing during that refactoring.
1 parent a9ce570 commit 4de2244

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

templates/repo/issue/fields/checkboxes.tmpl

+1-2
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)