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

Post Hook for LineItem does not receive entity_id and entity_table

    Details

    • 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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              nganivet Nicolas Ganivet
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: