Skip to content

Commit

Permalink
stringify cookie value to fix magento#5596
Browse files Browse the repository at this point in the history
  • Loading branch information
bka committed May 20, 2017
1 parent bdb0464 commit a4daf56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Cookie/view/frontend/web/js/notices.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});

Expand Down

0 comments on commit a4daf56

Please sign in to comment.