Skip to content

Commit

Permalink
Merge pull request #2 from hkillam/patch-3
Browse files Browse the repository at this point in the history
Merge two patches into single patch.
  • Loading branch information
hkillam committed Jun 6, 2016
2 parents 0b10cce + 92ab8b2 commit edae96f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CRM/Contact/Form/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit edae96f

Please sign in to comment.