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

postProcess hook sometimes not called on Contribution page

    Details

      Description

      When the 'Use a confirmation page' is unchecked on a contribution page, the postProcess hook is not called for that page. This is because the postProcess function for the main contribution page never returns as it then redirects straight to the thank-you page.

      Here is the fix: File CRM/Contribute/Form/Contribution/Main, line 1412, replace:
      // should we skip the confirm page?
      if (!CRM_Utils_Array::value('is_confirm_enabled', $this->_values)) {
      // build the confirm page

      With:
      // should we skip the confirm page?
      if (!CRM_Utils_Array::value('is_confirm_enabled', $this->_values)) {
      // call postProcess hook before leaving since we will not return
      $this->postProcessHook();

      // build the confirm page

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5 minutes
                5m
                Remaining:
                Remaining Estimate - 5 minutes
                5m
                Logged:
                Time Spent - Not Specified
                Not Specified