fixed set default

This commit is contained in:
CiviWare Solutions 2018-12-22 00:58:26 +00:00
parent 0a8855f74e
commit 7e9c5502f4

View File

@ -177,8 +177,15 @@ function softcreditcustomfields_civicrm_buildForm($formName, &$form) {
CRM_Core_Region::instance('page-footer')->add(array( CRM_Core_Region::instance('page-footer')->add(array(
'template' => "CRM/Contribute/Form/SoftCredit-Custom.tpl", 'template' => "CRM/Contribute/Form/SoftCredit-Custom.tpl",
)); ));
for ($blockId = 1; $blockId <= 10; $blockId++) { for ($blockId = 1; $blockId <= 10; $blockId++) {
$entityId = NULL;//CRM_Utils_Array::value('id', CRM_Utils_Array::value($blockId, $softCredits)); $entityId = CRM_Utils_Array::value(
'soft_credit_id',
CRM_Utils_Array::value(
$blockId,
CRM_Utils_Array::value('soft_credit', $form->_softCreditInfo)
)
);
_softcreditcustomfields_addCustomDataToForm($form, $entityId, $blockId); _softcreditcustomfields_addCustomDataToForm($form, $entityId, $blockId);
} }