Skip to content

Commit f841546

Browse files
committed
Merge branch 'MAGETWO-51314' into develop
2 parents 115bb91 + c57005b commit f841546

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Eav/Model/Entity/Attribute/Source

1 file changed

+2
-2
lines changed

app/code/Magento/Eav/Model/Entity/Attribute/Source/Table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ public function addValueSortToCollection($collection, $dir = \Magento\Framework\
144144
$linkField = $attribute->getEntity()->getLinkField();
145145
$collection->getSelect()->joinLeft(
146146
[$valueTable1 => $attribute->getBackend()->getTable()],
147-
"e.entity_id={$valueTable1}." . $linkField .
147+
"e.{$linkField}={$valueTable1}." . $linkField .
148148
" AND {$valueTable1}.attribute_id='{$attribute->getId()}'" .
149149
" AND {$valueTable1}.store_id=0",
150150
[]
151151
)->joinLeft(
152152
[$valueTable2 => $attribute->getBackend()->getTable()],
153-
"e.entity_id={$valueTable2}." . $linkField .
153+
"e.{$linkField}={$valueTable2}." . $linkField .
154154
" AND {$valueTable2}.attribute_id='{$attribute->getId()}'" .
155155
" AND {$valueTable2}.store_id='{$collection->getStoreId()}'",
156156
[]

0 commit comments

Comments
 (0)