// Fix minor bugs
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@7656 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+2
-2
@@ -2065,10 +2065,10 @@ class ProductCore extends ObjectModel
|
||||
if (is_numeric($productAttribute))
|
||||
$sql .= ' AND stock.id_product_attribute = '.$productAttribute;
|
||||
else if (is_string($productAttribute))
|
||||
$sql .= ' AND stock.id_product_attribute = '.pSQL($productAttribute).'.id_product_attribute';
|
||||
$sql .= ' AND stock.id_product_attribute = IFNULL('.pSQL($productAttribute).'.id_product_attribute, 0)';
|
||||
}
|
||||
$sql .= Shop::sqlSharedStock('stock', $context) . ' ';
|
||||
|
||||
|
||||
return $sql;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user