From: gerv%gerv.net <> Date: Sun, 12 Sep 2004 22:23:24 +0000 (+0000) Subject: Bug 225854 - only print "Steps to reproduce" when the user has entered some. Patch... X-Git-Tag: bugzilla-2.19.1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3582c773f927c3549937a8f8495fbd85c18afd44;p=thirdparty%2Fbugzilla.git Bug 225854 - only print "Steps to reproduce" when the user has entered some. Patch by buti@gmx.at; r=gerv. --- diff --git a/template/en/default/bug/create/comment-guided.txt.tmpl b/template/en/default/bug/create/comment-guided.txt.tmpl index c66a550e15..19d17a4675 100644 --- a/template/en/default/bug/create/comment-guided.txt.tmpl +++ b/template/en/default/bug/create/comment-guided.txt.tmpl @@ -31,11 +31,12 @@ Build Identifier: [%+ form.buildid %] [%+ IF form.reproducible != "Choose one..." -%] Reproducible: [%+ form.reproducible %] -[% END -%] +[% END %] -[%# I can't make TT check for "1.\n2.\n3." so this is not conditional. -%] +[% IF !(form.reproduce_steps.match('^1\.\s+2\.\s+3\.\s+$') || form.reproduce_steps.match('^\s+$')) %] Steps to Reproduce: [%+ form.reproduce_steps %] +[% END %] [% IF form.actual_results -%] Actual Results: