Skip to content

Commit 4623952

Browse files
committed
MC-38342: [B2B] Multiple identical warning messages are displayed when adding an unconfigured Product with Customizable Options to a Requisition List from a Category page
1 parent 32ed03c commit 4623952

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)