From: Simon Green Date: Mon, 20 Jan 2014 23:29:22 +0000 (+1000) Subject: Bug 913364 - Reuse preset values when navigation through enter_bug.cgi X-Git-Tag: bugzilla-4.5.2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91ae795be29e4ab48da994e1e33c21b2d3c524b5;p=thirdparty%2Fbugzilla.git Bug 913364 - Reuse preset values when navigation through enter_bug.cgi r=glob, a=glob --- diff --git a/enter_bug.cgi b/enter_bug.cgi index 1769b464c0..617fdde67a 100755 --- a/enter_bug.cgi +++ b/enter_bug.cgi @@ -75,8 +75,6 @@ if ($product_name eq '') { $vars->{'classifications'} = [map {$_->{'object'}} @classifications]; $vars->{'target'} = "enter_bug.cgi"; - $vars->{'format'} = $cgi->param('format'); - $vars->{'cloned_bug_id'} = $cgi->param('cloned_bug_id'); print $cgi->header(); $template->process("global/choose-classification.html.tmpl", $vars) @@ -107,8 +105,6 @@ if ($product_name eq '') { elsif (scalar(@enterable_products) > 1) { $vars->{'classifications'} = \@classifications; $vars->{'target'} = "enter_bug.cgi"; - $vars->{'format'} = $cgi->param('format'); - $vars->{'cloned_bug_id'} = $cgi->param('cloned_bug_id'); print $cgi->header(); $template->process("global/choose-product.html.tmpl", $vars) diff --git a/template/en/default/global/choose-classification.html.tmpl b/template/en/default/global/choose-classification.html.tmpl index 1a59f6d89d..815e625a61 100644 --- a/template/en/default/global/choose-classification.html.tmpl +++ b/template/en/default/global/choose-classification.html.tmpl @@ -19,13 +19,13 @@ [% DEFAULT title = "Choose the classification" %] [% PROCESS global/header.html.tmpl %] +[% previous_params = cgi.canonicalise_query('classification') %]

First, you must pick a classification on which to enter [% terms.abug %]:

@@ -39,8 +39,7 @@ diff --git a/template/en/default/global/choose-product.html.tmpl b/template/en/default/global/choose-product.html.tmpl index b6b75fdbc2..5dc619087d 100644 --- a/template/en/default/global/choose-product.html.tmpl +++ b/template/en/default/global/choose-product.html.tmpl @@ -11,8 +11,6 @@ # classification object and 'products' the list of # product objects the user can enter bugs into. # target: the script that displays this template. - # cloned_bug_id: ID of the bug being cloned. - # format: the desired format to display the target. #%] [% IF target == "enter_bug.cgi" %] @@ -30,6 +28,7 @@ [% DEFAULT title = "Choose a Product" %] [% PROCESS global/header.html.tmpl %] +[% previous_params = cgi.canonicalise_query('classification', 'product') %]

[% h2 FILTER html %]

+ [%- IF previous_params %]&[% previous_params FILTER none %][% END -%]"> All:
+ [%- IF previous_params %]&[% previous_params FILTER none %][% END -%]"> [% class.name FILTER html %]:
@@ -46,8 +45,7 @@
+ [%- IF previous_params %]&[% previous_params FILTER none %][% END -%]"> [% p.name FILTER html FILTER no_break %]