зеркало из https://github.com/mozilla/gecko-dev.git
Bug 364293: Do not call can_see_product() from templates - Patch by Fr��d��ric Buclin <LpSolit@gmail.com> r=bkor a=justdave
This commit is contained in:
Родитель
26ebdf635b
Коммит
0eeaee1fd1
|
@ -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 -%]
|
||||
|
|
|
@ -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 %]
|
||||
|
|
Загрузка…
Ссылка в новой задаче