Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
91ae795b
Commit
91ae795b
authored
Jan 21, 2014
by
Simon Green
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 913364 - Reuse preset values when navigation through enter_bug.cgi
r=glob, a=glob
parent
e02e3bc7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
12 deletions
+5
-12
enter_bug.cgi
enter_bug.cgi
+0
-4
choose-classification.html.tmpl
template/en/default/global/choose-classification.html.tmpl
+3
-4
choose-product.html.tmpl
template/en/default/global/choose-product.html.tmpl
+2
-4
No files found.
enter_bug.cgi
View file @
91ae795b
...
...
@@ -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
)
...
...
template/en/default/global/choose-classification.html.tmpl
View file @
91ae795b
...
...
@@ -19,13 +19,13 @@
[% 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>
...
...
@@ -39,8 +39,7 @@
<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>
...
...
template/en/default/global/choose-product.html.tmpl
View file @
91ae795b
...
...
@@ -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>[% h2 FILTER html %]</h2>
<table id="choose_product">
...
...
@@ -46,8 +45,7 @@
<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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment