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':