Skip to content

Commit f9d1f9a

Browse files
ENGCOM-3081: Fix for parsing attribute options labels, when & used. #18354
- Merge Pull Request #18354 from bartoszkubicki/magento2:preserve-&-in-attribute-option-label - Merged commits: 1. e6dc188
2 parents 02d1e1b + e6dc188 commit f9d1f9a

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)