File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
app/code/Magento/Swatches Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,8 @@ protected function initIsProductHasSwatchAttribute()
224
224
}
225
225
226
226
/**
227
+ * Check that product has at least one swatch attribute
228
+ *
227
229
* @return bool
228
230
*/
229
231
protected function isProductHasSwatchAttribute ()
@@ -413,7 +415,10 @@ protected function _toHtml()
413
415
}
414
416
415
417
/**
416
- * @codeCoverageIgnore
418
+ * Return renderer template
419
+ *
420
+ * Template for product with swatches is different from product without swatches
421
+ *
417
422
* @return string
418
423
*/
419
424
protected function getRendererTemplate ()
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ private function loadSwatchAttributeCodes()
99
99
]
100
100
)->where (
101
101
'a.attribute_id IN (?) ' ,
102
- new \ Zend_Db_Expr ( sprintf ( ' (%s) ' , $ this ->getAttributeIdsSelect ()) )
102
+ ( string ) $ this ->getAttributeIdsSelect ()
103
103
);
104
104
$ result = $ this ->resourceConnection ->getConnection ()->fetchPairs ($ select );
105
105
return $ result ;
You can’t perform that action at this time.
0 commit comments