summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@0d.be>2011-12-04 11:46:01 (GMT)
committerFrédéric Péters <fpeters@0d.be>2011-12-04 11:46:01 (GMT)
commite163e4f4138fc6569d6d1c802ad6283b3e7de025 (patch)
treee8c0c8db9f500661fc71daa43ca1036e7cc9e08f
parent76f1d33a82f927319a6947d42dab611280ae2f3a (diff)
downloadtabellio.searchform-e163e4f4138fc6569d6d1c802ad6283b3e7de025.zip
tabellio.searchform-e163e4f4138fc6569d6d1c802ad6283b3e7de025.tar.gz
tabellio.searchform-e163e4f4138fc6569d6d1c802ad6283b3e7de025.tar.bz2
fix document sort in simple search case
-rw-r--r--tabellio/searchform/simple.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tabellio/searchform/simple.py b/tabellio/searchform/simple.py
index 6f2f2f0..966b537 100644
--- a/tabellio/searchform/simple.py
+++ b/tabellio/searchform/simple.py
@@ -119,13 +119,12 @@ class SimpleSearchView(BrowserView):
catalog = getToolByName(self.context, 'portal_catalog')
if not self.request.form.get('SearchableText'):
return []
- sorton = self.request.form.get('docs-sort')
+ sorton = self.request.form.get('docs-sort', 'session')
c = catalog(
portal_type=['tabellio.documents.dossier',
'tabellio.documents.document',
'tabellio.documents.question'],
SearchableText=self.request.form.get('SearchableText'))
- sorton = 'session'
if sorton == 'session':
cmpf = cmpfunctions.Cmp().cmp_session
elif sorton == 'type':