grantprograms_civicrm_merge uses deprecated call to merge grant payments
Hello,
Function below in grantprograms.php calls CRM_Dedupe_Merger::cidRefs() and returns debug error every time contact summary is viewed.
Hook (hook_civicrm_merge) needs to be refactored to prevent debug message from filling up logs.
function grantprograms_civicrm_merge($type, &$data, $mainId = NULL, $otherId = NULL, $tables = NULL) {
if ($type == 'cidRefs') {
global $db_url;
if (!empty($db_url)) {
$db_default = is_array($db_url) ? $db_url['default'] : $db_url;
$db_default = ltrim(parse_url($db_default, PHP_URL_PATH), '/');
} else {
$db_default = '';
}
$data[$db_default . 'civicrm_payment'] = array('contact_id');
}
}
Debug error
05/Dec 09:48 debug civicrm Deprecated hook ::merge in context of 'cidRefs. Use entityTypes instead.
Array
(
[civi.tag] => deprecated
)