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

Add Contacts to Event task - throws notices

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.5
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      NOTE: Add Contacts to Event does NOT include Record Payment button, and does not create a linked contribution record for each participant. This behavior is consistent in 4.4 as well, so we don't need to change it. The 'problem' appears to be that the processPriceSet() function doesn't realize that there is no payment. In this case, line_item.contribution_id is correctly NULL.
      ============
      To recreate:
      Advanced Search -> Select a few contacts -> Select 'Add Contacts to Event' task. After completing Participant form - you are sent back to Advanced Search and these notices are thrown (in this case I selected 2 contacts, hence first notice is repeated):
      ==========

      Notice: Trying to get property of non-object in CRM_Price_BAO_LineItem::processPriceSet() (line 328 of /Users/dgg/git/crm_v4.5/CRM/Price/BAO/LineItem.php).
      Notice: Trying to get property of non-object in CRM_Price_BAO_LineItem::processPriceSet() (line 328 of /Users/dgg/git/crm_v4.5/CRM/Price/BAO/LineItem.php).
      Notice: Undefined offset: 0 in CRM_Event_Form_Participant->postProcess() (line 1491 of /Users/dgg/git/crm_v4.5/CRM/Event/Form/Participant.php).

      NOTE: I think the last notice may be due to changes in the participant_status widget ??

        Attachments

          Activity

            People

            • Assignee:
              yashodha Yashodha Chaku
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: