// Fix default shop associations in helper shop #PSTEST-770

This commit is contained in:
rMalie
2012-02-16 14:10:30 +00:00
parent e9d113dac7
commit c02982a8f8
8 changed files with 81 additions and 81 deletions
@@ -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