aboutsummaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorDan Fandrich <danf@mageia.org>2024-10-24 14:12:23 -0700
committerDan Fandrich <danf@mageia.org>2024-10-24 14:18:37 -0700
commit007d67fb1e32617e79cee01fa586ee0650e57227 (patch)
tree304b871bf2ab1a7a9fa2813560a16f013964a525 /template/en
parentaf88c9b35666d4042a8ccad2b4ca675f3c36ddea (diff)
downloadbugs-007d67fb1e32617e79cee01fa586ee0650e57227.tar
bugs-007d67fb1e32617e79cee01fa586ee0650e57227.tar.gz
bugs-007d67fb1e32617e79cee01fa586ee0650e57227.tar.bz2
bugs-007d67fb1e32617e79cee01fa586ee0650e57227.tar.xz
bugs-007d67fb1e32617e79cee01fa586ee0650e57227.zip
Fix Bugzilla field name display (mga#33660)
After running checksetup.pl, which seemingly hasn't been run in a long time, field names disappeared. There seems to be an issue with conditional set expressions in the templating engine that suddenly kicked in after that update, possibly with perl-Template-Toolkit-3.8.0. Changing that to a simple IF/SET/END block fixes that issue.
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/global/field-descs.none.tmpl5
1 files changed, 3 insertions, 2 deletions
diff --git a/template/en/default/global/field-descs.none.tmpl b/template/en/default/global/field-descs.none.tmpl
index f4e17c3f8..cd82e00db 100644
--- a/template/en/default/global/field-descs.none.tmpl
+++ b/template/en/default/global/field-descs.none.tmpl
@@ -136,8 +136,9 @@
or your installation, just use a hook. %]
[% UNLESS Param('shutdownhtml') %]
[% FOREACH bz_field = bug_fields.values %]
- [% SET vars.field_descs.${bz_field.name} = bz_field.description
- IF !vars.field_descs.${bz_field.name}.defined %]
+ [% IF !vars.field_descs.${bz_field.name}.defined %]
+ [% SET vars.field_descs.${bz_field.name} = bz_field.description %]
+ [% END %]
[% END %]
[% END %]