mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-15 00:14:38 +00:00
Fix search in event
This commit is contained in:
parent
c4c0699073
commit
f487f0f8de
@ -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'])
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user