Commit 889793a2 authored by Romain Courteaud's avatar Romain Courteaud

Template subscription is not related to a person.

parent 4354b756
...@@ -55,7 +55,11 @@ if REQUEST is not None:\n ...@@ -55,7 +55,11 @@ if REQUEST is not None:\n
raise Unauthorized\n raise Unauthorized\n
\n \n
if context.getCausalityState() == \'diverged\':\n if context.getCausalityState() == \'diverged\':\n
context.getDestinationSectionValue(portal_type="Person").Person_storeOpenSaleOrderJournal()\n \n
person = context.getDestinationSectionValue(portal_type="Person")\n
# Template document does not have person relation\n
if person is not None:\n
person.Person_storeOpenSaleOrderJournal()\n
\n \n
# Person_storeOpenSaleOrderJournal should fix all divergent Hosting Subscription in one run\n # Person_storeOpenSaleOrderJournal should fix all divergent Hosting Subscription in one run\n
assert context.getCausalityState() == \'solved\'\n assert context.getCausalityState() == \'solved\'\n
......
234 235
\ No newline at end of file \ No newline at end of file
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