From 1d763f1bc9caa70e2990ca3cfa9d81c8ca7ba8a1 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 14 Aug 2018 11:11:46 +0200 Subject: [PATCH] Widget: Fix voucher code argument --- src/pretix/static/pretixpresale/js/widget/widget.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/static/pretixpresale/js/widget/widget.js b/src/pretix/static/pretixpresale/js/widget/widget.js index 119c335ef..622819eb2 100644 --- a/src/pretix/static/pretixpresale/js/widget/widget.js +++ b/src/pretix/static/pretixpresale/js/widget/widget.js @@ -644,8 +644,8 @@ var shared_root_methods = { url = this.$root.event_url + 'widget/product_list?lang=' + lang; } var cart_id = getCookie(this.cookieName); - if (this.$root.voucher) { - url += '&voucher=' + escape(this.$root.voucher); + if (this.$root.voucher_code) { + url += '&voucher=' + escape(this.$root.voucher_code); } if (cart_id) { url += "&cart_id=" + cart_id;