From e163e4f4138fc6569d6d1c802ad6283b3e7de025 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 4 Dec 2011 12:46:01 +0100 Subject: [PATCH] fix document sort in simple search case --- tabellio/searchform/simple.py | 3 +-- 1 file changed, 1 insertion(+), 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':