diff --git a/chat/indico_chat/controllers/event.py b/chat/indico_chat/controllers/event.py index 004e68d..ab9b0bc 100644 --- a/chat/indico_chat/controllers/event.py +++ b/chat/indico_chat/controllers/event.py @@ -34,5 +34,5 @@ class RHChatEventPage(RHDisplayEventBase): cols.add('description') if any(c.chatroom.password for c in chatrooms): cols.add('password') - return WPChatEventPage.render_template('event_page.html', self._conf, event_chatrooms=chatrooms, cols=cols, + return WPChatEventPage.render_template('event_page.html', self.event, event_chatrooms=chatrooms, cols=cols, chat_links=current_plugin.settings.get('chat_links')) diff --git a/search/indico_search/controllers.py b/search/indico_search/controllers.py index 4dec30b..8e59c8b 100644 --- a/search/indico_search/controllers.py +++ b/search/indico_search/controllers.py @@ -34,7 +34,6 @@ class RHSearch(RH): def _process_args(self): if 'confId' in request.view_args: self.obj = Event.get_one(request.view_args['confId'], is_deleted=False) - self._conf = self.obj.as_legacy self.obj_type = 'event' elif 'category_id' in request.view_args: self.obj = Category.get_one(request.view_args['category_id'], is_deleted=False)