diff --git a/CRM/Contact/Form/Contact.php b/CRM/Contact/Form/Contact.php index 8407b12c6731..412491bcc8b6 100644 --- a/CRM/Contact/Form/Contact.php +++ b/CRM/Contact/Form/Contact.php @@ -1289,6 +1289,13 @@ public function parseAddress(&$params) { ))) { $streetAddress .= ' '; } + // CRM-17619 - if the street number suffix begins with a number, add a space + $thesuffix = CRM_Utils_Array::value('street_number_suffix', $address); + if ($fld === 'street_number_suffix' && $thesuffix) { + if (ctype_digit(substr($thesuffix, 0, 1))) { + $streetAddress .= ' '; + } + } $streetAddress .= CRM_Utils_Array::value($fld, $address); } $address['street_address'] = trim($streetAddress);