[-] FO: Fix #PSCFV-4720

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17825 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2012-10-10 14:09:33 +00:00
parent c91e452908
commit ab0e00e7d8
3 changed files with 3 additions and 1 deletions
@@ -76,6 +76,7 @@
var infos = msg.infos.split('_');
$('input[name=firstname]').val(infos[0]);
$('input[name=lastname]').val(infos[1]);
$('input[name=company]').val(infos[2]);
}
},
error: function(msg)
@@ -444,7 +444,7 @@ class AdminAddressesControllerCore extends AdminController
if (!empty($customer))
{
$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;
+1
View File
@@ -109,6 +109,7 @@ class AddressControllerCore extends FrontController
{
$_POST['firstname'] = $this->context->customer->firstname;
$_POST['lastname'] = $this->context->customer->lastname;
$_POST['company'] = $this->context->customer->company;
}
}