comparison src/pages/tickets/new/page_meta.py @ 969:8943ee1cf3d7

page(tickets/new): ignore status as it makes sense to use default status on ticket creation
author Goffi <goffi@goffi.org>
date Thu, 09 Nov 2017 08:02:49 +0100
parents 4d37b23777c3
children bc28b9068f91
comparison
equal deleted inserted replaced
968:4d37b23777c3 969:8943ee1cf3d7
18 service, node = data.get(u'service', u''), data.get(u'node', u'') 18 service, node = data.get(u'service', u''), data.get(u'node', u'')
19 profile = self.getProfile(request) 19 profile = self.getProfile(request)
20 schema = yield self.host.bridge.ticketsSchemaGet(service.full(), node, profile) 20 schema = yield self.host.bridge.ticketsSchemaGet(service.full(), node, profile)
21 data['schema'] = schema 21 data['schema'] = schema
22 # following fields are handled in backend 22 # following fields are handled in backend
23 ignore = ('reporter', 'created', 'updated', 'comments_uri') 23 ignore = ('reporter', 'created', 'updated', 'comments_uri', 'status')
24 xmlui_obj = template_xmlui.create(self.host, schema, ignore=ignore) 24 xmlui_obj = template_xmlui.create(self.host, schema, ignore=ignore)
25 request.template_data[u'new_ticket_xmlui'] = xmlui_obj 25 request.template_data[u'new_ticket_xmlui'] = xmlui_obj
26 26
27 @defer.inlineCallbacks 27 @defer.inlineCallbacks
28 def on_data_post(self, request): 28 def on_data_post(self, request):