From b7622eb04d9199a5f7a8df2fb5d253e6850468a8 Mon Sep 17 00:00:00 2001 From: "vladd%bugzilla.org" <> Date: Fri, 18 Aug 2006 03:24:04 +0000 Subject: Bug 348871: modify show_bug in order to pass HTML validation - Patch by victory(_RSZ_) r=LpSolit a=myk --- template/en/default/bug/edit.html.tmpl | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'template/en') diff --git a/template/en/default/bug/edit.html.tmpl b/template/en/default/bug/edit.html.tmpl index a2c13f2ea..e53e1caaf 100644 --- a/template/en/default/bug/edit.html.tmpl +++ b/template/en/default/bug/edit.html.tmpl @@ -486,7 +486,7 @@ - + Summarize time (including time for [% terms.bugs %] blocking this [% terms.bug %]) @@ -497,13 +497,16 @@ [%# *** Custom Fields *** %] [% USE Bugzilla %] - - [% FOREACH field = Bugzilla.get_fields({ obsolete => 0, custom => 1 }) %] - - [% PROCESS bug/field.html.tmpl value=bug.${field.name} editable=1 %] - - [% END %] -
+[% fields = Bugzilla.get_fields({ obsolete => 0, custom => 1 }) %] +[% IF fields %] + + [% FOREACH field = fields %] + + [% PROCESS bug/field.html.tmpl value=bug.${field.name} editable=1 %] + + [% END %] +
+[% END %] [%# *** Attachments *** %] -- cgit v1.2.3-24-g4f1b