Skip to content

Commit 358a304

Browse files
xmavValeriy Nayda
authored andcommitted
MAGETWO-65099: [Performance] Optimize validation of swatches attributes
1 parent aeb441b commit 358a304

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Swatches/Model/SwatchAttributeCodes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private function loadSwatchAttributeCodes()
9999
]
100100
)->where(
101101
'a.attribute_id IN (?)',
102-
(string)$this->getAttributeIdsSelect()
102+
new \Zend_Db_Expr($this->getAttributeIdsSelect())
103103
);
104104
$result = $this->resourceConnection->getConnection()->fetchPairs($select);
105105
return $result;

0 commit comments

Comments
 (0)