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

Obtaining before and after value in hook_civicrm_custom when using GUI

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Incomplete
    • Affects Version/s: 4.0.7
    • Fix Version/s: Unscheduled
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      Currently, when editing custom field values from the GUI, hook_civicrm_custom acts as though all custom values in the custom group have been changed regardless of whether or not they have been. This makes it impossible to determine which custom fields have changed, and thus difficult to perform an action using the hook on the change of a specific custom field without having each custom field in individual groups.

      This fix will provide both the pre and post custom field values for the entire custom group inside of hook_civicrm_custom, so that the user can compare and act on differences.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bpmccain Brian McCain
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified