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

Line Item BAO passes array rather than object to POST Hook

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.6.3
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      Developer Doc

      Description

      The post hook signature handles the created object but the line item api passes the params array ie

      CRM_Utils_Hook::post('create', 'LineItem', $params['entity_id'], $params);

      should be
      CRM_Utils_Hook::post('create', 'LineItem', $params['entity_id'], $lineItemBAO)

      Note that the entity_id is ALSO not correct - it should be line_item id - not sure whether to fix this too...

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: