From d7c7a789947080be76d94f28f3f7f8788a545f7d Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Sun, 7 Jul 2024 21:31:12 -0700 Subject: [PATCH] Don't show hidden labels when filling out an issue template (#31576) Related to #31574 --- *Sponsored by Kithara Software GmbH* --- templates/repo/issue/fields/header.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/repo/issue/fields/header.tmpl b/templates/repo/issue/fields/header.tmpl index 6034fed5fd..06c41af6b9 100644 --- a/templates/repo/issue/fields/header.tmpl +++ b/templates/repo/issue/fields/header.tmpl @@ -1,4 +1,4 @@ -{{if .item.Attributes.label}} +{{if and (.item.Attributes.label) (not .item.Attributes.hide_label)}}

{{.item.Attributes.label}}{{if .item.Validations.required}}{{end}}

{{end}} {{if .item.Attributes.description}}