Skip to content
Snippets Groups Projects
Commit 52b79a41 authored by its4you's avatar its4you
Browse files

Wrong decoded address population in Purchase Order

In purchase order when you select Vendor and then try to coppy Billing address with special characters, Wrongly decoded string will be populated into address fields.
parent 464ceae8
No related branches found
No related tags found
1 merge request!628Wrong decoded address population in purchase order
......@@ -46,11 +46,11 @@ class PurchaseOrder_CompanyDetails_Action extends Vtiger_Action_Controller {
function getCompanyDetails($request){
$companyModel = Vtiger_CompanyDetails_Model::getInstanceById();
$companyDetails = array(
'street' => $companyModel->get('organizationname') .' '.$companyModel->get('address'),
'city' => $companyModel->get('city'),
'state' => $companyModel->get('state'),
'code' => $companyModel->get('code'),
'country' => $companyModel->get('country'),
'street' => decode_html($companyModel->get('organizationname') .' '.$companyModel->get('address')),
'city' => decode_html($companyModel->get('city')),
'state' => decode_html($companyModel->get('state')),
'code' => decode_html($companyModel->get('code')),
'country' => decode_html($companyModel->get('country')),
);
$response = new Vtiger_Response();
$response->setResult($companyDetails);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment