Skip to content

Commit 065f444

Browse files
committed
[2.4.3-p1] Add to wishlist and add to compare not working.
1 parent 92198d1 commit 065f444

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

view/frontend/web/js/view/layer.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,15 +214,14 @@ define([
214214
var el = $(this);
215215
$(el).bind('click', function (e) {
216216
var dataPost = $(el).data('post'),
217-
formKey = $('input[name="form_key"]').val();
217+
formKey = $('input[name="form_key"]').val(), method = 'post';
218218
if (formKey) {
219219
dataPost.data.form_key = formKey;
220220
}
221221

222222
var paramData = $.param(dataPost.data),
223223
url = dataPost.action + (paramData.length ? '?' + paramData : '');
224-
225-
submitFilterAction(url, true);
224+
submitFilterAction(url, true, method);
226225
e.stopPropagation();
227226
e.preventDefault();
228227
});

0 commit comments

Comments
 (0)