From ab11871b996ae498a02b74b5232626759ddc08be Mon Sep 17 00:00:00 2001 From: Michael RICOIS Date: Thu, 21 Dec 2017 12:07:40 +0100 Subject: [PATCH] CS --- adm/tabs/AdminAddresses.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/adm/tabs/AdminAddresses.php b/adm/tabs/AdminAddresses.php index 791b8e64..d4996c51 100755 --- a/adm/tabs/AdminAddresses.php +++ b/adm/tabs/AdminAddresses.php @@ -135,8 +135,6 @@ class AdminAddresses extends AdminTab $this->_errors[] = Tools::displayError('Your zip/postal code is incorrect.'); } - - /** * If this address come from order's edition and is the same as the other one * (invoice or delivery one) @@ -188,7 +186,7 @@ class AdminAddresses extends AdminTab '); if ($socol) { // Get address - $delivery = new Address($_POST['id_address']); + $delivery = new Address($object->id); // Update So Colissimo Address - for printing label Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'socolissimo_delivery_info` SET prname = "'.$delivery->lastname.'",