// categories multishop improved

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12638 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-01-24 09:30:32 +00:00
parent 0d0e7f04c5
commit 988dd73596
5 changed files with 28 additions and 9 deletions
@@ -2466,7 +2466,8 @@ class AdminProductsControllerCore extends AdminController
$product = $obj;
$data = $this->createTemplate($this->tpl_form);
// Prepare Categories tree for display in Associations tab
$default_category = Tools::getValue('id_category', 1);
$root = Category::getRootCategory();
$default_category = Tools::getValue('id_category', $root->id);
if (!$product->id)
$selected_cat = Category::getCategoryInformations(Tools::getValue('categoryBox', array($default_category)), $this->default_form_language);