]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 225854 - only print "Steps to reproduce" when the user has entered some. Patch...
authorgerv%gerv.net <>
Sun, 12 Sep 2004 22:23:24 +0000 (22:23 +0000)
committergerv%gerv.net <>
Sun, 12 Sep 2004 22:23:24 +0000 (22:23 +0000)
template/en/default/bug/create/comment-guided.txt.tmpl

index c66a550e15ff8779c082275ab6491b439bcbb51c..19d17a46750cecb5e9072ccab5e5367a562808d4 100644 (file)
@@ -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: