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

invoke hook_civicrm_pre for employer relationship on edit

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 3.4.2
    • Fix Version/s: 4.4.0
    • Component/s: CiviCRM API
    • Labels:
      None

      Description

      This isn't actually an issue with API but with hooks - might want to create a new component for that.

      When the current employer is changed with editing an individual, hook_civicrm_pre is not called for the Relationship change.

      Work-around: hook_civicrm_pre is called for the individual, and one can check $objectRef->current_employer against the db's civicrm_contact.employer_id.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              joemurray Joe Murray
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: