Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.7.22
-
Fix Version/s: 4.7.28
-
Component/s: Core CiviCRM
-
Labels:
-
Versioning Impact:Patch (backwards-compatible bug fixes)
-
Documentation Required?:None
-
Funding Source:Contributed Code
-
Verified?:No
-
How it works currently:line 73 in CRM/Price/BAO/LineItem.php unsets these attributes and they are not saved/restored prior to making the post hook.
Description
In the POST hook for the LineItem entity, the entity_id and entity_table attributes are blank if the operation is edit (but have a value on create). Yet this information could be useful in all circumstances for the business logic implemented in this hook.