// little improvements for category management with multishop

This commit is contained in:
vChabot
2012-01-11 09:56:40 +00:00
parent 74ba9e82b4
commit 2b88bdbbf3
2 changed files with 17 additions and 9 deletions
+8 -1
View File
@@ -312,11 +312,18 @@ class AdminShopControllerCore extends AdminController
)
);
if (Tools::isSubmit('id_shop'))
{
$shop = new Shop(Tools::getValue('id_shop'));
$parent = $shop->id_category;
}
else
$parent = $categories[0]['id_category'];
$this->fields_form['input'][] = array(
'type' => 'categories_select',
'name' => 'categoryBox',
'label' => $this->l('Associated categories :'),
'category_tree' => $this->initCategoriesAssociation($categories[0]['id_category'])
'category_tree' => $this->initCategoriesAssociation($parent)
);
$this->fields_form['input'][] = array(
'type' => 'radio',