Commit f47c83b0 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_subscription_request: Include variation_reference on the redirection

parent cf212c64
Pipeline #14783 failed with stage
in 0 seconds
...@@ -4,6 +4,7 @@ if REQUEST is not None: ...@@ -4,6 +4,7 @@ if REQUEST is not None:
raise Unauthorized raise Unauthorized
portal = context.getPortalObject() portal = context.getPortalObject()
web_site = context.getWebSiteValue() web_site = context.getWebSiteValue()
if token: if token:
error = "" error = ""
...@@ -42,6 +43,8 @@ if confirmation_required and not person_is_new: ...@@ -42,6 +43,8 @@ if confirmation_required and not person_is_new:
subscription_reference) subscription_reference)
if token: if token:
redirect_url += "&field_your_reservation_invitation_token=%s" % token redirect_url += "&field_your_reservation_invitation_token=%s" % token
if variation_reference:
redirect_url += "&field_your_variation_reference=%s" % variation_reference
return context.REQUEST.RESPONSE.redirect(redirect_url) return context.REQUEST.RESPONSE.redirect(redirect_url)
if target_language is None: if target_language is None:
......
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