Made available on Advance search pane
This commit is contained in:
parent
7d15dd1c4d
commit
20c8985954
@ -167,8 +167,13 @@ function softcreditcustomfields_civicrm_preProcess($formName, &$form) {
|
|||||||
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildForm
|
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildForm
|
||||||
*/
|
*/
|
||||||
function softcreditcustomfields_civicrm_buildForm($formName, &$form) {
|
function softcreditcustomfields_civicrm_buildForm($formName, &$form) {
|
||||||
if ('CRM_Contribute_Form_Search' == $formName) {
|
if ('CRM_Contribute_Form_Search' == $formName
|
||||||
|
|| ('CRM_Contact_Form_Search_Advanced' == $formName && ('CiviContribute' == $form->_searchPane || $form->_flagSubmitted))
|
||||||
|
) {
|
||||||
CRM_Contribute_BAO_Query::addCustomFormFields($form, ['ContributionSoft']);
|
CRM_Contribute_BAO_Query::addCustomFormFields($form, ['ContributionSoft']);
|
||||||
|
if ('CRM_Contact_Form_Search_Advanced' == $formName && 'CiviContribute' != $form->_searchPane) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
CRM_Core_Region::instance('page-footer')->add(array(
|
CRM_Core_Region::instance('page-footer')->add(array(
|
||||||
'template' => "CRM/Contribute/Form/Search/SoftCredit-Search.tpl",
|
'template' => "CRM/Contribute/Form/Search/SoftCredit-Search.tpl",
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user