Skip to content

Commit b7518b5

Browse files
author
Sergey Semenov
committed
Merge remote-tracking branch 'origin/MAGETWO-52055' into BUGS
2 parents 665571a + 344e0e2 commit b7518b5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

app/code/Magento/Wishlist/view/frontend/web/js/add-to-wishlist.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,14 @@ define([
115115
});
116116
} else {
117117
if (elementValue) {
118-
data[elementName] = elementValue;
118+
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+
}
119126
}
120127
}
121128
return data;

0 commit comments

Comments
 (0)