* @throws \CiviCRM_API3_Exception
*/
public function submit($params) {
+ if ($this->_mode && !$this->_isPaidEvent) {
+ CRM_Core_Error::statusBounce(ts('Selected Event is not Paid Event '));
+ }
$participantStatus = CRM_Event_PseudoConstant::participantStatus();
// set the contact, when contact is selected
if (!empty($params['contact_id'])) {
$now = date('YmdHis');
if ($this->_mode) {
- if (!$this->_isPaidEvent) {
- CRM_Core_Error::statusBounce(ts('Selected Event is not Paid Event '));
- }
$eventTitle
= CRM_Core_DAO::getFieldValue(