diff options
author | Zettat123 <zettat123@gmail.com> | 2023-02-24 14:36:07 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 14:36:07 +0800 |
commit | a6175b01d92a75dcbadbbfc6782a486636fd62a2 (patch) | |
tree | f2a285e28d559015bebf1f79e5acc23e03d47b52 /templates/repo/issue/fields/input.tmpl | |
parent | 045becf9aacb49554efbe353b47af0e64f2509c5 (diff) | |
download | gitea-a6175b01d92a75dcbadbbfc6782a486636fd62a2.tar.gz gitea-a6175b01d92a75dcbadbbfc6782a486636fd62a2.zip |
Fix nil context in RenderMarkdownToHtml (#23092)
Fix #23082.
This bug is caused by a nil context in
https://github.com/go-gitea/gitea/issues/23082#issuecomment-1441276546 .
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates/repo/issue/fields/input.tmpl')
-rw-r--r-- | templates/repo/issue/fields/input.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/fields/input.tmpl b/templates/repo/issue/fields/input.tmpl index d73354f6d3..3fc8a86510 100644 --- a/templates/repo/issue/fields/input.tmpl +++ b/templates/repo/issue/fields/input.tmpl @@ -1,4 +1,4 @@ <div class="field"> {{template "repo/issue/fields/header" .}} - <input type="{{if .Validations.is_number}}number{{else}}text{{end}}" name="form-field-{{.ID}}" placeholder="{{.Attributes.placeholder}}" value="{{.Attributes.value}}" {{if .Validations.required}}required{{end}} {{if .Validations.regex}}pattern="{{.Validations.regex}}" title="{{.Validations.regex}}"{{end}}> + <input type="{{if .item.Validations.is_number}}number{{else}}text{{end}}" name="form-field-{{.item.ID}}" placeholder="{{.item.Attributes.placeholder}}" value="{{.item.Attributes.value}}" {{if .item.Validations.required}}required{{end}} {{if .item.Validations.regex}}pattern="{{.item.Validations.regex}}" title="{{.item.Validations.regex}}"{{end}}> </div> |