Skip to content

Commit 94c9a4b

Browse files
committed
Merge remote-tracking branch 'origin/MC-38342' into 2.4-develop-pr44
2 parents 226b08d + 4623952 commit 94c9a4b

File tree

2 files changed

+129
-78
lines changed

2 files changed

+129
-78
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Catalog\Model\Product\Type;
89

@@ -620,7 +621,7 @@ protected function _prepareOptions(\Magento\Framework\DataObject $buyRequest, $p
620621
}
621622
}
622623
if (count($results) > 0) {
623-
throw new LocalizedException(__(implode("\n", $results)));
624+
throw new LocalizedException(__(implode("\n", array_unique($results))));
624625
}
625626
}
626627

0 commit comments

Comments
 (0)