Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.3.3
-
Fix Version/s: 4.5.5
-
Component/s: CiviMember
-
Labels:None
-
Documentation Required?:None
Description
If a individual contact inherits a membership via relationship such as 'Employee/Employer' and you try to update the relationship in a post-hook a duplicate membership is created. That is the individual will receive 2 inherited memberships instead of one.
The site I am developing on is 4.3.3 but I would assume that this happens in other versions.
Explained in detail in forum topic: http://forum.civicrm.org/index.php/topic,29822.new.html#new
Example of post hook code:
function mymodule_civicrm_post( $op, $objectName, $objectId, &$objectRef ){
if($op=='create'){
if ($objectName=='Relationship')
}
}