fix sorting results on session

This commit is contained in:
Frédéric Péters 2011-10-21 18:38:13 +02:00
parent 25bcf98d7e
commit 2d7b0872bb
1 changed files with 2 additions and 1 deletions

View File

@ -169,8 +169,9 @@ class SearchView(BrowserView):
kw['sort_on'] = 'doctype'
elif data.get('sort_on') == 'Number':
kw['sort_on'] = 'no'
elif data.get('session') == 'Session':
elif data.get('sort_on') == 'Session':
kw['sort_on'] = 'session'
kw['sort_order'] = 'descending'
if not kw:
return []