// The blunder wasn't mine :)

This commit is contained in:
Damien Metzger
2013-08-09 17:31:00 +02:00
parent 971b45e630
commit eb0d2d47e4

View File

@@ -2197,7 +2197,11 @@ class BlockLayered extends Module
if ($id_parent == 1)
return false;
$query_filters_where = ' AND product_shop.`active` = 1 AND product_shop.`visibility` IN ("both", "catalog")';
$alias_where = 'p';
if (version_compare(_PS_VERSION_,'1.5','>'))
$alias_where = 'product_shop';
$query_filters_where = ' AND '.$alias_where.'.`active` = 1 AND '.$alias_where.'.`visibility` IN ("both", "catalog")';
$query_filters_from = '';
$parent = new Category((int)$id_parent);