Skip to content

Commit ece8488

Browse files
committed
MC-36383: [B2B] A Product with Customizable Option (File) can not be added from a Requisition List to the Shopping Cart
1 parent 91aaeec commit ece8488

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Catalog/Model/Product/Option/Type

1 file changed

+4
-1
lines changed

app/code/Magento/Catalog/Model/Product/Option/Type/File.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,10 @@ public function validateUserValue($values)
228228
* previous configuration with no newly uploaded file
229229
*/
230230
$fileInfo = null;
231-
if (isset($values[$option->getId()]) && is_array($values[$option->getId()])) {
231+
if (isset($values[$option->getId()])) {
232+
if (is_string($values[$option->getId()])) {
233+
$values[$option->getId()] = explode(',', $values[$option->getId()]);
234+
}
232235
// Legacy style, file info comes in array with option id index
233236
$fileInfo = $values[$option->getId()];
234237
} else {

0 commit comments

Comments
 (0)