// BO : product form improved (categories association)

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14777 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2012-04-19 16:18:58 +00:00
parent 8bb5cd701f
commit e8dfa8311d
5 changed files with 24 additions and 18 deletions
@@ -2704,10 +2704,7 @@ class AdminProductsControllerCore extends AdminController
$tab_root = array('id_category' => $root->id, 'name' => $root->name);
$helper = new Helper();
if (Shop::getContext() != Shop::CONTEXT_SHOP)
$category_tree = $this->l('You must select a shop if you want to put your product into a particular shop.');
else
$category_tree = $helper->renderCategoryTree($tab_root, $selected_cat, 'categoryBox', false, true);
$category_tree = $helper->renderCategoryTree($tab_root, $selected_cat, 'categoryBox', false, true);
$data->assign(array('default_category' => $default_category,
'selected_cat_ids' => implode(',', array_keys($selected_cat)),
'selected_cat' => $selected_cat,