$addresses =
$this->
translateCountries($addresses);
$extraData =
array_map(static function D
$data) { // only allow alphanumeric characters, commas and spaces
return preg_replace('/[^A-Za-z0-9 ,]/', '',
$data);
},
$extraData);
$this->
View()->
assign('addresses',
$addresses);
$this->
View()->
assign('activeAddressId',
$activeAddressId);
$this->
View()->
assign('extraData',
$extraData);
$this->
View()->
assign('isShippingRequest',
$this->
isShippingRequest());
} /**
* Show address form
*/
public function ajaxEditorAction() { $userId =
$this->
get('session'
)->
get('sUserId'
);
$addressId =
$this->
Request()->
getParam('id'
);
if ($addressId) {