fix document sort in simple search case
This commit is contained in:
parent
76f1d33a82
commit
e163e4f413
|
@ -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':
|
||||
|
|
Reference in New Issue