Skip to content

Commit cdd71a6

Browse files
author
Mayank Zalavadia
committed
Solution for 12825 issue.
1 parent 79d8e9a commit cdd71a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/code/Magento/ConfigurableProduct/Model/ResourceModel/Attribute/OptionSelectBuilder.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ public function getSelect(AbstractAttribute $superAttribute, int $productId, Sco
9797
)->where(
9898
'attribute.attribute_id = ?',
9999
$superAttribute->getAttributeId()
100+
)->joinInner(
101+
['attribute_opt' => $this->attributeResource->getTable('eav_attribute_option')],
102+
'attribute_opt.option_id = entity_value.value',
103+
[]
104+
)->order(
105+
'attribute_opt.sort_order ASC'
100106
);
101107

102108
if (!$superAttribute->getSourceModel()) {

0 commit comments

Comments
 (0)