Skip to content

Commit

Permalink
Fixes output if location type is primary
Browse files Browse the repository at this point in the history
  • Loading branch information
VangelisP committed Oct 25, 2019
1 parent cd48635 commit 2076c0d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CRM/Core/BAO/UFGroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -2445,6 +2445,13 @@ public static function setProfileDefaults(
}
}
}
else {
if (substr($fieldName, 0, 14) === 'address_custom' &&
CRM_Utils_Array::value(substr($fieldName, 8), $value)
) {
$defaults[$fldName] = self::reformatProfileDefaults($field, $value[substr($fieldName, 8)]);
}
}
}
}
}
Expand Down

0 comments on commit 2076c0d

Please sign in to comment.