To avoid:
Notice: Undefined offset: 1 in CRM_Event_Form_Participant->postProcess()
(line 1497...)
----------------------------------------
* CRM-14865: Prevent duplicate participants when using offline event registration
https://issues.civicrm.org/jira/browse/CRM-14865
CRM_Core_Session::setStatus(ts("No participants were added."));
return;
}
+ // We have to re-key $this->_contactIds so each contact has the same
+ // key as their corresponding record in the $participants array that
+ // will be created below.
+ $this->_contactIds = array_values($this->_contactIds);
}
}