Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-21610

Contribution ID is not assigned to the &$form object in postProcess hook for extensions

    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
    • 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) { ...

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chandana Chandana Bandara
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified