$dao = CRM_Core_DAO::executeQuery($query, [1 => [$addressId, 'Integer']]);
// legacy - for api backward compatibility
- if (!isset($params['add_relationship'] && isset($params['update_current_employer']))) {
+ if (!isset($params['add_relationship']) && isset($params['update_current_employer'])) {
// warning
CRM_Core_Error::deprecatedFunctionWarning('update_current_employer is deprecated, use add_relationship instead');
$params['add_relationship'] = $params['update_current_employer'];
<div id="shared-address-{$blockId}" class="form-layout-compressed">
{$form.address.$blockId.master_contact_id.label}
{$form.address.$blockId.master_contact_id.html}
- <div class="shared-address-create-relationship" style="display: none;">
+ <div class="shared-address-add-relationship" style="display: none;">
{$form.address.$blockId.add_relationship.html}
{$form.address.$blockId.add_relationship.label}
<div class="employer">{help id="id-sharedAddress-updateRelationships" file="CRM/Contact/Form/Contact"}</div>