From a4daf56117493f62dad5a0d9decda75f3a67c4e2 Mon Sep 17 00:00:00 2001 From: Bernhard Leers Date: Sat, 20 May 2017 15:32:15 +0200 Subject: [PATCH] stringify cookie value to fix #5596 --- app/code/Magento/Cookie/view/frontend/web/js/notices.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Cookie/view/frontend/web/js/notices.js b/app/code/Magento/Cookie/view/frontend/web/js/notices.js index 8ae7d64875822..253950747ce14 100644 --- a/app/code/Magento/Cookie/view/frontend/web/js/notices.js +++ b/app/code/Magento/Cookie/view/frontend/web/js/notices.js @@ -24,7 +24,7 @@ define([ $(this.options.cookieAllowButtonSelector).on('click', $.proxy(function () { var cookieExpires = new Date(new Date().getTime() + this.options.cookieLifetime * 1000); - $.mage.cookies.set(this.options.cookieName, this.options.cookieValue, { + $.mage.cookies.set(this.options.cookieName, JSON.stringify(this.options.cookieValue), { expires: cookieExpires });