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

Fire hooks on contact image deletion

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.25
    • Fix Version/s: 4.7.31
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No
    • How it works currently:
      No hooks are fired when the contact image is deleted.
    • How it should work:
      postUpdate and postSave hooks are fired.
    • Acceptance Criteria:
      When deleting a contact image from the profile overview page the contact image is removed and hooks are fired.

      Description

      Right now from the image deletion from the contact edit page comes uses the link "civicrm/contact/image" which ends up in a call to CRM_Contact_BAO_Contact::deleteContactImage. Right now that just does a direct SQL query, which doesn't allow for any reactions to the image deletion.

       

        Attachments

          Activity

            People

            • Assignee:
              michael Michael Devery
              Reporter:
              michael Michael Devery
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: