diff --git a/admin-dev/tabs/AdminAddresses.php b/admin-dev/tabs/AdminAddresses.php index 9dfea8271..0489f0579 100644 --- a/admin-dev/tabs/AdminAddresses.php +++ b/admin-dev/tabs/AdminAddresses.php @@ -75,8 +75,7 @@ class AdminAddresses extends AdminTab { if (Validate::isEmail(Tools::getValue('email'))) { - $customer = new Customer; - $customer = $customer->getByemail(Tools::getValue('email')); + $customer = new Customer(Tools::getValue('id_customer')); if (Validate::isLoadedObject($customer)) $_POST['id_customer'] = $customer->id; else diff --git a/admin-dev/tabs/AdminCategories.php b/admin-dev/tabs/AdminCategories.php index 4f5e8d55d..2152741a7 100644 --- a/admin-dev/tabs/AdminCategories.php +++ b/admin-dev/tabs/AdminCategories.php @@ -222,7 +222,7 @@ class AdminCategories extends AdminTab 'Collapse All' => $this->l('Collapse All'), 'Expand All' => $this->l('Expand All') ); - echo Helper::renderAdminCategorieTree($trads, array(isset($obj->id_parent) ? $obj->id_parent : 1), 'id_parent', true); + echo Helper::renderAdminCategorieTree($trads, array(isset($obj->id_parent) ? $obj->id_parent : Tools::getValue('id_parent', 1)), 'id_parent', true); echo '
' . $this->l('Select if it is machinable or not by default.') . '
' . $this->l('Using the calcul mode "All items in one package" will automatically use default packaging size, packaging type and delivery services. Specifics configurations for categories or product won\'t be used.') . '
+' . $this->l('Using the calculation mode "All items in one package" will automatically use default packaging size, packaging type and delivery services. Specifics configurations for categories or product won\'t be used.') . '