Notice errors on backoffice event registration
Overview
Register a participant in backoffice. See notice errors.
Reproduction steps
- On dmaster, click on Events -> Register Event Participant.
- Select a contact, event fall fundraiser dinner, click Save.
- Get three copies for different line numbers of "Notice: Trying to get property '_id' of non-object in CRM_Event_Form_Participant::formRule()".
Current behaviour
Notice: Trying to get property '_id' of non-object in CRM_Event_Form_Participant::formRule() (line 825 of /srv/buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Event/Form/Participant.php).
Notice: Trying to get property '_id' of non-object in CRM_Event_Form_Participant::formRule() (line 828 of /srv/buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Event/Form/Participant.php).
Notice: Trying to get property '_action' of non-object in CRM_Event_Form_Participant::formRule() (line 836 of /srv/buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Event/Form/Participant.php).
Note: happens when recording payment and when not recording payment.
Expected behaviour
No notice errors
Environment information
dmaster
Comments
Anything else you would like the reviewer to note.