From: gerv%gerv.net <> Date: Mon, 13 Nov 2006 19:39:54 +0000 (+0000) Subject: Bug 308950 - add build ID parameter to guided page for non-browser products. Patch... X-Git-Tag: bugzilla-2.23.4~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1c83b410cd23c14e74a4a43f64632c050008dd7;p=thirdparty%2Fbugzilla.git Bug 308950 - add build ID parameter to guided page for non-browser products. Patch by gerv; r=justdave. --- diff --git a/template/en/default/bug/create/create-guided.html.tmpl b/template/en/default/bug/create/create-guided.html.tmpl index 5b27aa1735..1d06831578 100644 --- a/template/en/default/bug/create/create-guided.html.tmpl +++ b/template/en/default/bug/create/create-guided.html.tmpl @@ -269,24 +269,29 @@ function PutDescription() { - [% matches = cgi.user_agent('Gecko/(\d+)') %] - [% buildid = cgi.user_agent() IF matches %] + [% IF product.match("Firefox|Camino|Mozilla Application Suite") %] + [% matches = cgi.user_agent('Gecko/(\d+)') %] + [% buildid = cgi.user_agent() IF matches %] + [% END %] + + [%# Accept URL parameter build ID for non-browser products %] + [% IF cgi.param("buildid") %] + [% buildid = cgi.param("buildid") %] + [% END %] - Build Identifier
(User Agent)
+ Build Identifier

- This identifies exactly the version of the product you were using. - If reporting [% terms.abug %] in Mozilla or Firefox, - this is the line beginning "Mozilla/5.0" in - Help | About. - If you are using the problematic software to file the bug, this - field will already be filled in correctly. - If the product won't start, just enter the complete URL you - downloaded it from. + This should identify the exact version of the product you were using. + If the above field is blank or you know it is incorrect, copy the + version text from the product's Help | + About menu (for browsers this will begin with "Mozilla/5.0..."). + If the product won't start, instead paste the complete URL you downloaded + it from.

@@ -298,11 +303,10 @@ function PutDescription() {

- URL that demonstrates the problem you are seeing (optional.) - + URL that demonstrates the problem you are seeing (optional).
+ IMPORTANT: if the problem is with a broken web page, you need + to report it + a different way.