Fixed code to support contribution search for soft credit filter
This commit is contained in:
@ -335,3 +335,21 @@ function softcreditcustomfields_civicrm_queryObjects(&$queryObjects, $type) {
|
||||
$queryObjects[] = new CRM_SoftCredit_SoftCreditQueryObject();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_civicrm_queryObjects().
|
||||
*
|
||||
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_queryObjects
|
||||
*/
|
||||
function softcreditcustomfields_civicrm_alterContent(&$content, $context, $tplName, &$object) {
|
||||
if (in_array($tplName, [
|
||||
'CRM/Contribute/Form/Search/AdvancedSearchPane.tpl',
|
||||
'CRM/Contribute/Form/Search.tpl'
|
||||
])) {
|
||||
$content = str_replace(
|
||||
"cj('#contribution_soft_credit_type_id').val('');",
|
||||
'',
|
||||
$content
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user