Skip to content

Commit dceed9b

Browse files
committed
Merge pull request #6 from magento-goinc/MAGETWO-45114
MAGETWO-45114
2 parents 3c4b0bd + d54ae8d commit dceed9b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Catalog/Block/Product/View/Options/Type/Select.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function getValuesHtml()
142142
' name="options[' .
143143
$_option->getId() .
144144
']' .
145-
(!empty($arraySign) ? '[' . $htmlValue . ']' : '') .
145+
$arraySign .
146146
'" id="options_' .
147147
$_option->getId() .
148148
'_' .

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ define([
9191
},
9292
_getElementData: function(element) {
9393
var data = {},
94-
elementName = $(element).attr('name'),
94+
elementName = $(element).attr('id').replace(/[^_]+/, 'options').replace(/_(\d+)/g, '[$1]'),
9595
elementValue = $(element).val();
9696
if ($(element).is('select[multiple]') && elementValue !== null) {
9797
if (elementName.substr(elementName.length - 2) == '[]') {

0 commit comments

Comments
 (0)