Mercurial > libervia-web
diff src/pages/tickets/view/page_meta.py @ 994:b92b06f023cb
pages: profile is now always set in template_data, and None if there is no user logged
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 13 Dec 2017 00:37:12 +0100 |
parents | 97cce8c1e96a |
children | 1c09f41e2f52 |
line wrap: on
line diff
--- a/src/pages/tickets/view/page_meta.py Wed Dec 13 00:35:56 2017 +0100 +++ b/src/pages/tickets/view/page_meta.py Wed Dec 13 00:37:12 2017 +0100 @@ -35,8 +35,6 @@ if profile is None: profile = C.SERVICE_PROFILE - else: - template_data['profile'] = profile tickets = yield self.host.bridge.ticketsGet(service.full() if service else u'', node, C.NO_LIMIT, [ticket_id], '', {}, profile) ticket = [template_xmlui.create(self.host, x, ignore=['publisher']) for x in tickets[0]][0]