We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 665571a + 344e0e2 commit b7518b5Copy full SHA for b7518b5
app/code/Magento/Wishlist/view/frontend/web/js/add-to-wishlist.js
@@ -115,7 +115,14 @@ define([
115
});
116
} else {
117
if (elementValue) {
118
- data[elementName] = elementValue;
+ if (elementName.substr(elementName.length - 2) == '[]') {
119
+ elementName = elementName.substring(0, elementName.length - 2);
120
+ if (elementValue) {
121
+ data[elementName + '[' + elementValue + ']'] = elementValue;
122
+ }
123
+ } else {
124
+ data[elementName] = elementValue;
125
126
}
127
128
return data;
0 commit comments