//small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16727 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -2605,7 +2605,7 @@ class AdminProductsControllerCore extends AdminController
|
||||
$data = $this->createTemplate($this->tpl_form);
|
||||
// Prepare Categories tree for display in Associations tab
|
||||
$root = Category::getRootCategory();
|
||||
$default_category = Tools::getValue('id_category', Configuration::get('PS_HOME_CATEGORY'));
|
||||
$default_category = Tools::getValue('id_category', Context::getContext()->shop->id_category);
|
||||
|
||||
if (!$product->id)
|
||||
$selected_cat = Category::getCategoryInformations(Tools::getValue('categoryBox', array($default_category)), $this->default_form_language);
|
||||
|
||||
Reference in New Issue
Block a user