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.