File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
app/code/Magento/SalesSampleData/Model/Order Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,15 @@ protected function getProductAttributes($configurableAttributes)
205
205
continue ;
206
206
}
207
207
$ 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
+ }
209
217
if (!$ attributeOption ) {
210
218
throw new \RuntimeException ('Required option " ' .$ value .'" for ' .$ attributeCode .' does not exist ' );
211
219
}
You can’t perform that action at this time.
0 commit comments