diff options
author | lpsolit%gmail.com <> | 2006-12-22 04:34:07 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-12-22 04:34:07 +0000 |
commit | 821248dd28977e46b2ded8296dbf7cf3931c0fc6 (patch) | |
tree | 97ba6ab126ca41f4264e62b2b707348ef45940fa /template/en/default/search/form.html.tmpl | |
parent | 1a40b1fe9dcc8de81dc8a47cec64368efaea22a1 (diff) | |
download | bugs-821248dd28977e46b2ded8296dbf7cf3931c0fc6.tar bugs-821248dd28977e46b2ded8296dbf7cf3931c0fc6.tar.gz bugs-821248dd28977e46b2ded8296dbf7cf3931c0fc6.tar.bz2 bugs-821248dd28977e46b2ded8296dbf7cf3931c0fc6.tar.xz bugs-821248dd28977e46b2ded8296dbf7cf3931c0fc6.zip |
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/form.html.tmpl')
-rw-r--r-- | template/en/default/search/form.html.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/template/en/default/search/form.html.tmpl b/template/en/default/search/form.html.tmpl index 3cc8b7b43..4942bafe0 100644 --- a/template/en/default/search/form.html.tmpl +++ b/template/en/default/search/form.html.tmpl @@ -44,8 +44,8 @@ var tms = new Array(); [% FOREACH c = classification %] prods[[% nclass FILTER js %]] = [ [% sep = '' %] - [%- FOREACH item = c.products -%] - [%- IF user.can_see_product(item.name) && item.components.size -%] + [%- FOREACH item = user.get_selectable_products(c.id) -%] + [%- IF item.components.size -%] [%- sep FILTER js %]'[% item.name FILTER js %]' [%- sep = ',' -%] [%- END -%] |