Skip to content

Commit 18fb482

Browse files
Filter error array by unique values
1 parent abbfa03 commit 18fb482

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)