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
e93a383f
Commit
e93a383f
authored
Apr 16, 2014
by
David Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 994619 - show_bug product list is sometimes missing the actual product a bug is in
r=gerv,a=justdave
parent
65a0dd9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
10 deletions
+21
-10
product-select.html.tmpl
template/en/default/global/product-select.html.tmpl
+20
-10
duplicates.html.tmpl
template/en/default/reports/duplicates.html.tmpl
+1
-0
No files found.
template/en/default/global/product-select.html.tmpl
View file @
e93a383f
...
@@ -47,29 +47,39 @@
...
@@ -47,29 +47,39 @@
[% END %]
[% END %]
[% IF Param('useclassification') %]
[% IF Param('useclassification') %]
[%
product_id
s = {} %]
[%
classification
s = {} %]
[% IF products %]
[% IF products %]
[% FOREACH p = products %]
[% FOREACH p = products %]
[% key = p.id -%]
[% IF NOT classifications.${p.classification.name}.defined %]
[% product_ids.$key = p.id -%]
[% classifications.${p.classification.name} = [] %]
[% END %]
[% classifications.${p.classification.name}.push(p) %]
[% END %]
[% END %]
[% E
ND
%]
[% E
LSE
%]
[% FOREACH c = user.get_selectable_classifications %]
[% FOREACH c = user.get_selectable_classifications %]
<optgroup label="[% c.name FILTER html %]">
[% classifications.${c.name} = [] %]
[% FOREACH p = user.get_selectable_products(c.id) %]
[% FOREACH p = user.get_selectable_products(c.id) %]
[% NEXT IF (products && ! product_ids.exists(p.id)) %]
[% classifications.${c.name}.push(p) %]
[% END %]
[% END %]
[% END %]
[% FOREACH c = classifications.keys.sort %]
<optgroup label="[% c FILTER html %]">
[% FOREACH p = classifications.$c %]
<option value="[% p.$valueattribute FILTER html %]"
<option value="[% p.$valueattribute FILTER html %]"
[% " selected" IF (cgi.param(name) == p.name) || (value
== p.name
) %]>
[% " selected" IF (cgi.param(name) == p.name) || (value
.contains(p.name)
) %]>
[% p.name FILTER html %]
[% p.name FILTER html %]
</option>
</option>
[% END %]
[% END %]
</optgroup>
</optgroup>
[% END %]
[% END %]
[% ELSE %]
[% ELSE %]
[% products = user.get_selectable_products UNLESS products %]
[% IF NOT products.defined %]
[% products = user.get_selectable_products %]
[% END %]
[% FOREACH p = products %]
[% FOREACH p = products %]
<option value="[% p.$valueattribute FILTER html %]"
<option value="[% p.$valueattribute FILTER html %]"
[% " selected" IF (cgi.param(name) == p.name) || (value
== p.name
) %]>
[% " selected" IF (cgi.param(name) == p.name) || (value
.contains(p.name)
) %]>
[% p.name FILTER html %]
[% p.name FILTER html %]
</option>
</option>
[% END %]
[% END %]
...
...
template/en/default/reports/duplicates.html.tmpl
View file @
e93a383f
...
@@ -55,6 +55,7 @@
...
@@ -55,6 +55,7 @@
id => "product"
id => "product"
name => "product"
name => "product"
multiple => 5
multiple => 5
value => product
%]
%]
</td>
</td>
</tr>
</tr>
...
...
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