Skip to content

Commit 4853eea

Browse files
committed
Cast $attributeId as int in select
1 parent 1027e02 commit 4853eea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Eav/Model/Entity/Collection/AbstractCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ public function _loadAttributes($printQuery = false, $logQuery = false)
11731173
}
11741174
$attribute = $this->_eavConfig->getAttribute($entity->getType(), $attributeCode);
11751175
if ($attribute && !$attribute->isStatic()) {
1176-
$tableAttributes[$attribute->getBackendTable()][] = $attributeId;
1176+
$tableAttributes[$attribute->getBackendTable()][] = (int) $attributeId;
11771177
if (!isset($attributeTypes[$attribute->getBackendTable()])) {
11781178
$attributeTypes[$attribute->getBackendTable()] = $attribute->getBackendType();
11791179
}

0 commit comments

Comments
 (0)