Skip to content

Commit bd50538

Browse files
committed
Merge branch 'MAGETWO-71229' into 2.1.13-PR-0.5
2 parents affd485 + e1c7b90 commit bd50538

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Catalog/view/frontend/web/js/validate-product.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ define([
3131
* @param {Object} form
3232
* @returns {Boolean}
3333
*/
34-
submitHandler: function (form) {
34+
submitHandler: function (form, event) {
3535
var jqForm = $(form).catalogAddToCart({
3636
bindSubmit: bindSubmit
3737
});
3838

39-
jqForm.catalogAddToCart('submitForm', jqForm);
39+
jqForm.catalogAddToCart('submitForm', jqForm, event);
4040

4141
return false;
4242
}

app/code/Magento/Theme/view/frontend/web/js/view/messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ define([
2121
initialize: function () {
2222
this._super();
2323

24-
this.cookieMessages = $.cookieStorage.get('mage-messages');
24+
this.cookieMessages = _.unique($.cookieStorage.get('mage-messages'), 'text');
2525
this.messages = customerData.get('messages').extend({
2626
disposableCustomerData: 'messages'
2727
});

0 commit comments

Comments
 (0)