diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-08-24 19:09:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-24 11:09:36 +0000 |
commit | 4de224469774a502f560cbf62060a03016c97167 (patch) | |
tree | 2610ec3a035e1c4badae2ed30282182940896bb3 /templates/repo/issue | |
parent | a9ce570298d4541bc1b5598dc080d9e4541de17b (diff) | |
download | gitea-4de224469774a502f560cbf62060a03016c97167.tar.gz gitea-4de224469774a502f560cbf62060a03016c97167.zip |
Make issue template field template access correct template data (#26698)
Regression of #23092, the `{{$field := .}}` was missing during that refactoring.
Diffstat (limited to 'templates/repo/issue')
-rw-r--r-- | templates/repo/issue/fields/checkboxes.tmpl | 3 |
1 files changed, 1 insertions, 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 @@ <div class="field"> {{template "repo/issue/fields/header" .}} - {{$field := .}} {{range $i, $opt := .item.Attributes.options}} <div class="field"> <div class="ui checkbox"> - <input type="checkbox" name="form-field-{{$field.ID}}-{{$i}}" {{if $opt.required}}readonly checked{{end}}> + <input type="checkbox" name="form-field-{{$.item.ID}}-{{$i}}" {{if $opt.required}}readonly checked{{end}}> <label>{{$opt.label}}</label> </div> </div> |