Skip to content

Commit

Permalink
Merge pull request #14077 from pradpnayak/AutoComplete
Browse files Browse the repository at this point in the history
Fixed auto populate of contact refrence field on membership signup form
  • Loading branch information
colemanw authored Apr 20, 2019
2 parents e0dde29 + ca65fe7 commit 85a1be1
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions CRM/Core/BAO/CustomField.php
Original file line number Diff line number Diff line change
Expand Up @@ -1421,18 +1421,6 @@ public static function setProfileDefaults(
}
break;

case 'Autocomplete-Select':
if ($customField->data_type == 'ContactReference') {
if (is_numeric($value)) {
$defaults[$elementName . '_id'] = $value;
$defaults[$elementName] = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $value, 'sort_name');
}
}
else {
$defaults[$elementName] = $value;
}
break;

default:
$defaults[$elementName] = $value;
}
Expand Down

0 comments on commit 85a1be1

Please sign in to comment.