comparison src/pages/tickets/new/page_meta.py @ 1088:35f6a46d7ff1

pages (tickets/new): fixed use of legacy "reporter" instead of "author"
author Goffi <goffi@goffi.org>
date Fri, 01 Jun 2018 12:50:41 +0200
parents 296bda6b7ed0
children 01e95ec9df9e
comparison
equal deleted inserted replaced
1087:5d179a3dac50 1088:35f6a46d7ff1
20 service, node = data.get(u'service', u''), data.get(u'node', u'') 20 service, node = data.get(u'service', u''), data.get(u'node', u'')
21 profile = self.getProfile(request) 21 profile = self.getProfile(request)
22 schema = yield self.host.bridge.ticketsSchemaGet(service.full(), node, profile) 22 schema = yield self.host.bridge.ticketsSchemaGet(service.full(), node, profile)
23 data['schema'] = schema 23 data['schema'] = schema
24 # following fields are handled in backend 24 # following fields are handled in backend
25 ignore = ('reporter', 'reporter_jid', 'reporter_email', 'created', 'updated', 'comments_uri', 'status', 'milestone', 'priority') 25 ignore = ('author', 'author_jid', 'author_email', 'created', 'updated', 'comments_uri', 'status', 'milestone', 'priority')
26 xmlui_obj = template_xmlui.create(self.host, schema, ignore=ignore) 26 xmlui_obj = template_xmlui.create(self.host, schema, ignore=ignore)
27 try: 27 try:
28 # small trick to get a one line text input instead of the big textarea 28 # small trick to get a one line text input instead of the big textarea
29 xmlui_obj.widgets[u'labels'].type = u'string' 29 xmlui_obj.widgets[u'labels'].type = u'string'
30 except KeyError: 30 except KeyError: