Commit e05ccb31 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_panel: Project_createTicketWithCausality only works for monitoring

   Base_addSlapOSSupportRequest always created a ticket so no reason to invoke Project_createTicketWithCausality anyway.
parent 79620d05
Pipeline #38386 failed with stage
in 0 seconds
...@@ -11,14 +11,20 @@ if context.getPortalType() == 'Project': ...@@ -11,14 +11,20 @@ if context.getPortalType() == 'Project':
project = context project = context
else: else:
project = context.getFollowUpValue() project = context.getFollowUpValue()
support_request = project.Project_createTicketWithCausality(
'Support Request', support_request = person.Entity_createTicketFromTradeCondition(
resource,
title, title,
description, description,
causality=context.getRelativeUrl(), portal_type='Support Request',
destination_decision=person.getRelativeUrl() source_project=project.getRelativeUrl(),
causality=context.getRelativeUrl()
) )
support_request.Ticket_addSlapOSEvent(title, description, attachment=attachment, resource=resource, batch=True) support_request.Ticket_addSlapOSEvent(
title, description,
attachment=attachment,
resource=resource,
batch=True)
return support_request.Base_redirect() return support_request.Base_redirect()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment