From a5674a685df24624a144d5b122001fc879dd2b2e Mon Sep 17 00:00:00 2001 From: rGaillard Date: Tue, 22 Nov 2011 14:22:11 +0000 Subject: [PATCH] // Fix bugs AdminShopController --- admin-dev/themes/template/shop/form.tpl | 4 ++-- controllers/admin/AdminShopController.php | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/admin-dev/themes/template/shop/form.tpl b/admin-dev/themes/template/shop/form.tpl index 478341057..c46ae72a4 100644 --- a/admin-dev/themes/template/shop/form.tpl +++ b/admin-dev/themes/template/shop/form.tpl @@ -72,13 +72,13 @@ {elseif $key == 'select'} {elseif $key == 'allcheckbox'} -
+
    {foreach $field.values as $key => $label}
  • diff --git a/controllers/admin/AdminShopController.php b/controllers/admin/AdminShopController.php index 135c1f9f0..4830a5890 100755 --- a/controllers/admin/AdminShopController.php +++ b/controllers/admin/AdminShopController.php @@ -243,8 +243,6 @@ class AdminShopControllerCore extends AdminController if (Shop::getTotalShops() > 1 && $obj->id) $disabled = array( - 'share_customer' => true, - 'share_order' => true, 'active' => false ); else @@ -292,7 +290,7 @@ class AdminShopControllerCore extends AdminController 'type' => 'select', 'name' => 'importFromShop', 'options' => array( - 'query' => Shop::getTree(), + 'query' => Shop::getShops(false), 'name' => 'name' ) ), @@ -310,7 +308,7 @@ class AdminShopControllerCore extends AdminController $this->tpl_form_vars = array( 'disabled' => $disabled, 'checked' => (Tools::getValue('addshop') !== false) ? true : false, - 'defaultGroup' => Shop::getInstance(Configuration::get('PS_SHOP_DEFAULT'))->getGroupID(), + 'defaultShop' => (int)Configuration::get('PS_SHOP_DEFAULT'), ); if (isset($this->fields_import_form))