Details
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 ??