summaryrefslogtreecommitdiffstats
path: root/template/en/default/search/search-specific.html.tmpl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-12-22 05:34:07 +0100
committerlpsolit%gmail.com <>2006-12-22 05:34:07 +0100
commit821248dd28977e46b2ded8296dbf7cf3931c0fc6 (patch)
tree97ba6ab126ca41f4264e62b2b707348ef45940fa /template/en/default/search/search-specific.html.tmpl
parent1a40b1fe9dcc8de81dc8a47cec64368efaea22a1 (diff)
downloadbugzilla-821248dd28977e46b2ded8296dbf7cf3931c0fc6.tar.gz
bugzilla-821248dd28977e46b2ded8296dbf7cf3931c0fc6.tar.xz
Bug 364293: Do not call can_see_product() from templates - Patch by Frédéric Buclin <LpSolit@gmail.com> r=bkor a=justdave
Diffstat (limited to 'template/en/default/search/search-specific.html.tmpl')
-rw-r--r--template/en/default/search/search-specific.html.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/en/default/search/search-specific.html.tmpl b/template/en/default/search/search-specific.html.tmpl
index 05c8bd180..f92ea7bd5 100644
--- a/template/en/default/search/search-specific.html.tmpl
+++ b/template/en/default/search/search-specific.html.tmpl
@@ -73,8 +73,8 @@ for "crash secure SSL flash".
[% IF Param('useclassification') %]
[% FOREACH c = classification %]
<optgroup label="[% c.name FILTER html %]">
- [% FOREACH p = c.products %]
- [% IF user.can_see_product(p.name) && p.components.size %]
+ [% FOREACH p = user.get_selectable_products(c.id) %]
+ [% IF p.components.size %]
<option value="[% p.name FILTER html %]"
[% " selected" IF lsearch(default.product, p.name) != -1 %]>
[% p.name FILTER html %]