// Fix attributes values form page for multishop #PSTEST-780

This commit is contained in:
rMalie
2012-03-23 15:44:30 +00:00
parent 93330e7b86
commit 8e9b4e6ee6
2 changed files with 5 additions and 4 deletions
@@ -294,7 +294,6 @@ class AdminAttributesGroupsControllerCore extends AdminController
$associations = array();
foreach (Db::getInstance()->executeS($sql) as $row)
$associations[$row['id_attribute_group']][] = $row['id_group_shop'];
$this->fields_form['shop_associations'] = Tools::jsonEncode($associations);
$this->fields_form['input'][] = array(
'type' => 'group_shop',
@@ -303,8 +302,10 @@ class AdminAttributesGroupsControllerCore extends AdminController
'values' => Shop::getTree()
);
}
else
$associations = array();
$this->fields_form['shop_associations'] = Tools::jsonEncode(array());
$this->fields_form['shop_associations'] = Tools::jsonEncode($associations);
$this->fields_form['input'][] = array(
'type' => 'color',
'label' => $this->l('Color:'),