Skip to content

Commit 8ae91cf

Browse files
author
Stanislav Idolov
authored
ENGCOM-3081: Fix for parsing attribute options labels, when & used. #18354
2 parents 8e7b04e + f9d1f9a commit 8ae91cf

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute

1 file changed

+2
-1
lines changed

app/code/Magento/Catalog/Controller/Adminhtml/Product/Attribute/Save.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,8 @@ private function preprocessOptionsData(&$data)
327327
$serializedOptions = json_decode($data['serialized_options'], JSON_OBJECT_AS_ARRAY);
328328
foreach ($serializedOptions as $serializedOption) {
329329
$option = [];
330-
parse_str($serializedOption, $option);
330+
$serializedOptionWithParsedAmpersand = str_replace('&', '%26', $serializedOption);
331+
parse_str($serializedOptionWithParsedAmpersand, $option);
331332
$data = array_replace_recursive($data, $option);
332333
}
333334
}

0 commit comments

Comments
 (0)