$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)
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)
[% DEFAULT title = "Choose the classification" %]
[% PROCESS global/header.html.tmpl %]
+[% previous_params = cgi.canonicalise_query('classification') %]
<h2>First, you must pick a classification on which to enter [% terms.abug %]:</h2>
<table id="choose_classification">
<tr>
<th class="right">
<a href="[% target FILTER uri %]?classification=__all
- [% IF cloned_bug_id %]&cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%]
- [%- IF format %]&format=[% format FILTER uri %][% END %]">
+ [%- IF previous_params %]&[% previous_params FILTER none %][% END -%]">
All</a>:
</th>
<tr>
<th class="right">
<a href="[% target FILTER uri %]?classification=[% class.name FILTER uri -%]
- [%- IF cloned_bug_id %]&cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%]
- [%- IF format %]&format=[% format FILTER uri %][% END %]">
+ [%- IF previous_params %]&[% previous_params FILTER none %][% END -%]">
[% class.name FILTER html %]</a>:
</th>
# 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" %]
[% DEFAULT title = "Choose a Product" %]
[% PROCESS global/header.html.tmpl %]
+[% previous_params = cgi.canonicalise_query('classification', 'product') %]
<h2>[% h2 FILTER html %]</h2>
<table id="choose_product">
<tr>
<th class="right">
<a href="[% target %]?product=[% p.name FILTER uri -%]
- [%- IF cloned_bug_id %]&cloned_bug_id=[% cloned_bug_id FILTER uri %][% END -%]
- [%- IF format %]&format=[% format FILTER uri %][% END %]">
+ [%- IF previous_params %]&[% previous_params FILTER none %][% END -%]">
[% p.name FILTER html FILTER no_break %]</a>:
</th>