Commit 152549e7 authored by Alain Takoudjou's avatar Alain Takoudjou

slapos_crm: return None if cannot get support_request_in_progress object

parent 973d2eac
Pipeline #2011 skipped
...@@ -31,8 +31,8 @@ if support_request_in_progress is not None: ...@@ -31,8 +31,8 @@ if support_request_in_progress is not None:
support_request_in_progress = context.REQUEST.get("support_request_in_progress", None) support_request_in_progress = context.REQUEST.get("support_request_in_progress", None)
if support_request_in_progress is not None: if support_request_in_progress is not None:
support_request = portal.restrictedTraverse(support_request_in_progress) support_request = portal.restrictedTraverse(support_request_in_progress, None)
if support_request.getTitle() == title and \ if support_request and support_request.getTitle() == title and \
support_request.getSourceProjectUid() == source_project_value.getUid(): support_request.getSourceProjectUid() == source_project_value.getUid():
return portal.restrictedTraverse(support_request_in_progress) return portal.restrictedTraverse(support_request_in_progress)
......
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