mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-08 00:52:01 +01:00
Clean address line to be on 1 line
This commit is contained in:
@@ -2114,7 +2114,7 @@ if (preg_match('/^dopayment/', $action)) // If we choosed/click on the payment
|
||||
<?php if (is_object($object) && is_object($object->thirdparty)) { ?>, address: {
|
||||
city: '<?php echo dol_escape_js($object->thirdparty->town); ?>',
|
||||
country: '<?php echo dol_escape_js($object->thirdparty->country_code); ?>',
|
||||
line1: '<?php echo dol_escape_js($object->thirdparty->address); ?>',
|
||||
line1: '<?php echo dol_escape_js(preg_replace('/\s\s+/', ' ', $object->thirdparty->address)); ?>',
|
||||
postal_code: '<?php echo dol_escape_js($object->thirdparty->zip); ?>'}<?php } ?>
|
||||
} /* TODO Add all other known data like emails, ... to be SCA compliant */
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user