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

Address post hook passes out an array rather than an object like other post hooks

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:
      None

      Description

      I think this will make it like the other post hooks

      Index: CRM/Core/BAO/Address.php
      ===================================================================
      — CRM/Core/BAO/Address.php (revision 40684)
      +++ CRM/Core/BAO/Address.php (working copy)
      @@ -201,10 +201,10 @@

      // lets call the post hook only after we've done all the follow on processing
      if ($isEdit)

      { - CRM_Utils_Hook::post('edit', 'Address', $params['id'], $params); + CRM_Utils_Hook::post('edit', 'Address', $params['id'], $address); }

      else

      { - CRM_Utils_Hook::post('create', 'Address', NULL, $params); + CRM_Utils_Hook::post('create', 'Address', NULL, $address); }

      }

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: