Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.6
-
Fix Version/s: 4.6.1
-
Component/s: None
-
Labels:None
-
Documentation Required?:None
Description
The comments for the _custom hook say that it is called 'before' custom data is saved.
It is actually called AFTER custom data is saved. This is true everywhere custom is called:
\CRM\Core\BAO\CustomValue.php
\CRM\Core\BAO\CustomValueTable.php
The wiki documents this correctly.
PR to follow.
I have opened a wider discussion regarding the implementation of _custom here: http://forum.civicrm.org/index.php/topic,36329.0.html