[-] FO: Fix #PSCFV-4720

This commit is contained in:
rGaillard
2012-10-10 14:09:33 +00:00
parent bc4e9a6582
commit fbe124bdd5
3 changed files with 3 additions and 1 deletions
@@ -76,6 +76,7 @@
var infos = msg.infos.split('_'); var infos = msg.infos.split('_');
$('input[name=firstname]').val(infos[0]); $('input[name=firstname]').val(infos[0]);
$('input[name=lastname]').val(infos[1]); $('input[name=lastname]').val(infos[1]);
$('input[name=company]').val(infos[2]);
} }
}, },
error: function(msg) error: function(msg)
@@ -444,7 +444,7 @@ class AdminAddressesControllerCore extends AdminController
if (!empty($customer)) if (!empty($customer))
{ {
$customer = $customer['0']; $customer = $customer['0'];
echo Tools::jsonEncode(array('infos' => pSQL($customer['firstname']).'_'.pSQL($customer['lastname']))); echo Tools::jsonEncode(array('infos' => pSQL($customer['firstname']).'_'.pSQL($customer['lastname']).'_'.pSQL($customer['company'])));
} }
} }
die; die;
+1
View File
@@ -109,6 +109,7 @@ class AddressControllerCore extends FrontController
{ {
$_POST['firstname'] = $this->context->customer->firstname; $_POST['firstname'] = $this->context->customer->firstname;
$_POST['lastname'] = $this->context->customer->lastname; $_POST['lastname'] = $this->context->customer->lastname;
$_POST['company'] = $this->context->customer->company;
} }
} }