Fix search in event

This commit is contained in:
Adrian Moennich 2014-10-22 17:27:36 +02:00
parent c4c0699073
commit f487f0f8de
2 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@ from indico_search.views import WPSearchCategory, WPSearchEvent
class RHSearch(RHCustomizable):
def _checkParams(self):
if 'confId' in request.view_args:
self.obj = ConferenceHolder().getById(request.view_args['confId'])
self.obj = self._conf = ConferenceHolder().getById(request.view_args['confId'])
self.obj_type = 'event'
elif 'categId' in request.view_args:
self.obj = CategoryManager().getById(request.view_args['categId'])

View File

@ -27,5 +27,6 @@ class WPSearchCategory(WPJinjaMixinPlugin, WPCategoryDisplayBase):
class WPSearchEvent(WPJinjaMixinPlugin, WPConferenceDisplayBase):
# XXX shouldn't this inhert from WPConferenceDefaultDisplayBase?!
def _getBody(self, params):
return self._getPageContent(params)