Skip to content

Commit

Permalink
Fix a bug if when q is not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
yml committed Feb 15, 2011
1 parent 7937377 commit 0e46335
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions filer/admin/folderadmin.py
Expand Up @@ -173,6 +173,7 @@ def filter_file(qs, terms=[]):
search_terms = urllib.unquote_plus(q).split(" ")
else:
search_terms = []
q = ''
limit_search_to_folder = request.GET.get('limit_search_to_folder', False) in (True, 'on')

if len(search_terms)>0:
Expand Down

0 comments on commit 0e46335

Please sign in to comment.