Details
-
Type: Patch
-
Status: Won't Do
-
Priority: Minor
-
Resolution: Won't Do
-
Affects Version/s: 4.7.29
-
Fix Version/s: None
-
Component/s: Core CiviCRM
-
Labels:
-
Versioning Impact:Minor (add functionality in backwards-compatible manner)
-
Documentation Required?:None
-
Funding Source:Needs Funding
-
Verified?:No
-
Overview:When a membership creation is made, the hooks need to access the contribution information.
-
How it works currently:Contribution id is not included in the $form object passes to hooks
-
How it should work:Contribution id should be included in the $form object passes to hooks
-
Acceptance Criteria:The $form object passes to the hooks contain the contribution_id in case a contribution is made while creating a membership.
Description
When creating a membership, it's useful to have the contribution_id in the "$form" object data in postProcess hook. I suggest to include it with the passing $form object.
e.g. in the extension hook,
function myextension_civicrm_postProcess($formName, &$form) { ...