From 9f26d21a197cd77aaf421fec1a5bbedb6b90f5d7 Mon Sep 17 00:00:00 2001 From: Heather Killam Date: Sun, 5 Jun 2016 17:26:28 -0600 Subject: [PATCH] CRM-17619 add space before numeric suffix A third place with the same problem. --- CRM/Contact/Form/Contact.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Contact/Form/Contact.php b/CRM/Contact/Form/Contact.php index 8407b12c67..b9eca4a16a 100644 --- a/CRM/Contact/Form/Contact.php +++ b/CRM/Contact/Form/Contact.php @@ -1289,6 +1289,10 @@ class CRM_Contact_Form_Contact extends CRM_Core_Form { ))) { $streetAddress .= ' '; } + // CRM-17619 - if the street number suffix begins with a number, add a space + if ($fld === 'street_number_suffix' && ctype_digit(substr(CRM_Utils_Array::value($fld, $address), 0, 1))) { + $streetAddress .= ' '; + } $streetAddress .= CRM_Utils_Array::value($fld, $address); } $address['street_address'] = trim($streetAddress); -- 2.25.1