Skip to content

Commit de5d02f

Browse files
mfickerssumesh-GL
authored andcommitted
Fix error on admin product edit page when all product attributes are globally scoped
1 parent bd4aabb commit de5d02f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/code/Magento/Catalog/Model/Attribute/ScopeOverriddenValue.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ private function initAttributeValues($entityType, $entity, $storeId)
157157
$selects[] = $select;
158158
}
159159

160+
if (empty($selects)) {
161+
return;
162+
}
163+
160164
$unionSelect = new \Magento\Framework\DB\Sql\UnionExpression(
161165
$selects,
162166
\Magento\Framework\DB\Select::SQL_UNION_ALL

0 commit comments

Comments
 (0)