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

Add optional parameters to CRM_Core_Transaction::addCallback

    Details

    • Type: Improvement
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.2.2
    • Fix Version/s: 4.3.0
    • Component/s: Core CiviCRM
    • Labels:

      Description

      Currently there is not a way to pass along parameters to the callback when using CRM_Core_Transaction::addCallback. This leave people using things like global variables and session making things a bit sloppy and/or hard to debug.

      I've attached a patch to alter the existing CRM_Core_Transaction::addCallback and invokeCallbacks that seems to be backward compatible per my testing.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              cravecode Brian Young
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: