From 007d67fb1e32617e79cee01fa586ee0650e57227 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 24 Oct 2024 14:12:23 -0700 Subject: 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. --- template/en/default/global/field-descs.none.tmpl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'template/en/default/global') 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 %] -- cgit v1.2.1