[-] BO : fixed bug #PSCFV-3383
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16596 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -568,9 +568,9 @@ class AdminCategoriesControllerCore extends AdminController
|
|||||||
public function processFatherlessProducts($id_parent)
|
public function processFatherlessProducts($id_parent)
|
||||||
{
|
{
|
||||||
$all_product_asso = array();
|
$all_product_asso = array();
|
||||||
$tmp = Db::getInstance()->executeS('SELECT `id_product` FROM `'._DB_PREFIX_.'category_product`');
|
$tmp = Db::getInstance()->executeS('SELECT DISTINCT(`id_product`) FROM `'._DB_PREFIX_.'category_product`');
|
||||||
foreach ($tmp as $val)
|
foreach ($tmp as $val)
|
||||||
$all_product_asso[] = $val;
|
$all_product_asso[] = $val['id_product'];
|
||||||
|
|
||||||
/* Delete or link products which were not in others categories */
|
/* Delete or link products which were not in others categories */
|
||||||
$fatherless_products = new Collection('Product', Context::getContext()->language->id);
|
$fatherless_products = new Collection('Product', Context::getContext()->language->id);
|
||||||
|
|||||||
Reference in New Issue
Block a user