We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 516bbe8 commit 3f9b64bCopy full SHA for 3f9b64b
app/code/Magento/Eav/Model/Entity/AbstractEntity.php
@@ -1064,7 +1064,11 @@ protected function _loadModelAttributes($object)
1064
$selectGroups = $this->_resourceHelper->getLoadAttributesSelectGroups($selects);
1065
foreach ($selectGroups as $selects) {
1066
if (!empty($selects)) {
1067
- $select = $this->_prepareLoadSelect($selects);
+ if (is_array($selects)) {
1068
+ $select = $this->_prepareLoadSelect($selects);
1069
+ } else {
1070
+ $select = $selects;
1071
+ }
1072
$values = $this->getConnection()->fetchAll($select);
1073
foreach ($values as $valueRow) {
1074
$this->_setAttributeValue($object, $valueRow);
0 commit comments