Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit de92f12

Browse files
Merge pull request #1 from paul-stolk-webdiensten/416-group-product-errors
Filter error array by unique values
2 parents abbfa03 + 18fb482 commit de92f12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/Model/Product/Type/AbstractType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ protected function _prepareOptions(\Magento\Framework\DataObject $buyRequest, $p
603603
}
604604
}
605605
if (count($results) > 0) {
606-
throw new LocalizedException(__(implode("\n", $results)));
606+
throw new LocalizedException(__(implode("\n", array_unique($results))));
607607
}
608608
}
609609

0 commit comments

Comments
 (0)