Commit 4f7f8cbe authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_panel: Only re-validate support requests

parent fc0d6136
......@@ -28,10 +28,11 @@ event = ticket.Ticket_createProjectEvent(
source=person_relative_url
)
try:
ticket.validate()
except (AttributeError, UnsupportedWorkflowMethod):
pass
if ticket.getPortalType() == 'Support Request':
try:
ticket.validate()
except (AttributeError, UnsupportedWorkflowMethod):
pass
if batch:
return event
......
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