// Fix default shop associations in helper shop #PSTEST-770
This commit is contained in:
@@ -421,11 +421,10 @@ class AdminCategoriesControllerCore extends AdminController
|
||||
)
|
||||
);
|
||||
if (Shop::isFeatureActive())
|
||||
$this->fields_form['input'][] = array(
|
||||
$this->fields_form['form'][] = array(
|
||||
'type' => 'shop',
|
||||
'label' => $this->l('Shop association:'),
|
||||
'name' => 'checkBoxShopAsso',
|
||||
'values' => Shop::getTree()
|
||||
);
|
||||
// remove category tree and radio button "is_root_category" if this category has the root category as parent category to avoid any conflict
|
||||
if ($this->_category->id_parent == Category::getTopCategory()->id && Tools::isSubmit('updatecategory'))
|
||||
|
||||
@@ -2503,7 +2503,7 @@ class AdminProductsControllerCore extends AdminController
|
||||
|
||||
// Multishop block
|
||||
$data->assign('feature_shop_active', Shop::isFeatureActive());
|
||||
$helper = new Helper();
|
||||
$helper = new HelperForm();
|
||||
if ($this->object && $this->object->id)
|
||||
$helper->id = $this->object->id;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user