// Improve DbQuery

This commit is contained in:
rMalie committed 2011-09-20 16:49:22 +00:00
1 parent ae8fe141a5
commit daff11df6b
4 files changed
+413 -11

No files matched your search

+1 -1
View File
@@ -2065,7 +2065,7 @@ class ProductCore extends ObjectModel
{
// @todo remove this code when query builder is accepted or removed
$method = ($innerJoin) ? 'innerJoin' : 'leftJoin';
$sql->$method(_DB_PREFIX_.'stock stock', 'stock.id_product = '.pSQL($productAlias).'.id_product');
$sql->$method('stock stock ON stock.id_product = '.pSQL($productAlias).'.id_product');
if (!is_null($productAttribute))
{
if (!Combination::isFeatureActive())