[-] 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:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user