We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91aaeec commit ece8488Copy full SHA for ece8488
app/code/Magento/Catalog/Model/Product/Option/Type/File.php
@@ -228,7 +228,10 @@ public function validateUserValue($values)
228
* previous configuration with no newly uploaded file
229
*/
230
$fileInfo = null;
231
- if (isset($values[$option->getId()]) && is_array($values[$option->getId()])) {
+ if (isset($values[$option->getId()])) {
232
+ if (is_string($values[$option->getId()])) {
233
+ $values[$option->getId()] = explode(',', $values[$option->getId()]);
234
+ }
235
// Legacy style, file info comes in array with option id index
236
$fileInfo = $values[$option->getId()];
237
} else {
0 commit comments