// merge 6001,6010,6012,6013
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@6018 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+4
-3
@@ -119,12 +119,13 @@ class PackCore extends Product
|
||||
public static function getPacksTable($id_product, $id_lang, $full = false, $limit = NULL)
|
||||
{
|
||||
$packs = Db::getInstance()->getValue('
|
||||
SELECT GROUP_CONCAT(a.`id_product_pack`, ",")
|
||||
SELECT GROUP_CONCAT(a.`id_product_pack`)
|
||||
FROM `'._DB_PREFIX_.'pack` a
|
||||
WHERE a.`id_product_item` = '.(int)$id_product.')');
|
||||
WHERE a.`id_product_item` = '.(int)$id_product);
|
||||
|
||||
if (!(int)$packs)
|
||||
return array();
|
||||
|
||||
|
||||
$sql = '
|
||||
SELECT p.*, pl.*, i.`id_image`, il.`legend`, t.`rate`
|
||||
FROM `'._DB_PREFIX_.'product` p
|
||||
|
||||
Reference in New Issue
Block a user