Skip to content

Commit 85a032b

Browse files
author
Oleksandr Gorkun
committed
MC-18685: Remove custom layout updates from admin
1 parent a314ee5 commit 85a032b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/code/Magento/SalesSampleData/Model/Order/Converter.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,15 @@ protected function getProductAttributes($configurableAttributes)
205205
continue;
206206
}
207207
$options = $this->productConverter->getAttributeOptions($attribute->getAttributeCode());
208-
$attributeOption = $options->getItemByColumnValue('value', $value);
208+
$attributeOption = null;
209+
$options->load();
210+
/** @var \Magento\Framework\DataObject $option */
211+
foreach ($options as $option) {
212+
if (mb_strtolower($option->getData('value')) === mb_strtolower($value)) {
213+
$attributeOption = $option;
214+
break;
215+
}
216+
}
209217
if (!$attributeOption) {
210218
throw new \RuntimeException('Required option "' .$value .'" for ' .$attributeCode .' does not exist');
211219
}

0 commit comments

Comments
 (0)