Skip to content

Commit

Permalink
no category filtering when search from /extensions (bug 620499)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Balogh committed Dec 23, 2010
1 parent ed787ca commit a6dad2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/browse/views.py
Expand Up @@ -157,12 +157,11 @@ def extensions(request, category=None):

count = addons.with_index(addons='type_status_inactive_idx').count()
addons = amo.utils.paginate(request, addons, count=count)
search_cat = '%s,%s' % (TYPE, category.id if category else 0)
return jingo.render(request, 'browse/extensions.html',
{'category': category, 'addons': addons,
'sorting': filter.field,
'sort_opts': filter.opts,
'search_cat': search_cat})
'search_cat': '%s,0' % TYPE})


class CategoryLandingFilter(BaseFilter):
Expand Down

0 comments on commit a6dad2e

Please sign in to comment.