Commit d062becf authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_subscription_request: Save email into the person document if the email is None

New users should have appropriated email.
parent 3ebaa773
......@@ -14,6 +14,10 @@ reference = None
password = None
person = context.getDestinationSectionValue(portal_type="Person")
if person.getDefaultEmailText() is None:
person.setDefaultEmailText(context.getDefaultEmailText())
# Should come from subscription condition probably or preference
role_list = ['member', 'subscriber']
......
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