if ($id == 'Primary') {
$locationTypeName = 1;
}
+ elseif ($fieldName == 'url') {
+ $locationTypeName = "website-{$id}";
+ }
else {
$locationTypeName = CRM_Utils_Array::value($id, $locationTypes);
if (!$locationTypeName) {
}
elseif (strpos($property, '-url') !== FALSE) {
$websiteUrl = '';
- $websiteKey = 'website-1';
+ $websiteKey = str_replace('-url', '', $property);
$propertyArray = explode('-', $property);
$websiteFld = $websiteKey . '-' . array_pop($propertyArray);
if (!empty($result->$websiteFld)) {