// Improve multishop code
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10982 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -194,16 +194,25 @@ class AdminShopControllerCore extends AdminController
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
$options = array();
|
||||
foreach (GroupShop::getGroupShops() as $group)
|
||||
$options[] = array(
|
||||
'id_group_shop' => $group->id,
|
||||
'name' => $group->name,
|
||||
);
|
||||
|
||||
$this->fields_form['input'][] = array(
|
||||
'type' => 'select',
|
||||
'label' => $this->l('Group Shop:'),
|
||||
'name' => 'id_group_shop',
|
||||
'options' => array(
|
||||
'query' => GroupShop::getGroupShops(),
|
||||
'query' => $options,
|
||||
'id' => 'id_group_shop',
|
||||
'name' => 'name'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
$categories = Category::getCategories($this->context->language->id, false, false);
|
||||
$this->fields_form['input'][] = array(
|
||||
|
||||
Reference in New Issue
Block a user