[*] BO : categories multishop improved

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12557 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-01-19 14:03:33 +00:00
parent 6dfdc62f4d
commit 6806cdeab3
15 changed files with 163 additions and 92 deletions
@@ -2472,12 +2472,7 @@ class AdminProductsControllerCore extends AdminController
$selected_cat = Product::getProductCategoriesFull($product->id, $this->default_form_language);
}
$root_category = Category::getRootCategory();
if (!$root_category->id_category)
{
$root_category->id_category = 0;
$root_category->name = $this->l('Root');
}
$root_category = array('id_category' => $root_category->id_category, 'name' => $root_category->name);
$root_category = array('id_category' => $root_category->id_category, 'name' => $root_category->name[$this->context->language->id]);
$translations = array(
'Root' => $root_category,
'selected' => $this->l('selected'),