Fix for Cannot add participants to event from search
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Mon, 6 Apr 2015 13:11:01 +0000 (18:41 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 9 Apr 2015 10:03:55 +0000 (15:33 +0530)
CRM/Event/BAO/Participant.php
CRM/Event/Form/Participant.php

index fc96c6960669deef2a681748b91a8ac99266cefc..66b8505504382c6083093180cdc91edb48d76345 100644 (file)
@@ -110,7 +110,9 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant {
         $op = key($params['role_id']);
         $params['role_id'] = $params['role_id'][$op];
       }
-      $params['role_id'] = implode(CRM_Core_DAO::VALUE_SEPARATOR, $params['role_id']);
+      else {
+        $params['role_id'] = implode(CRM_Core_DAO::VALUE_SEPARATOR, $params['role_id']);
+      }
     }
 
     $participantBAO = new CRM_Event_BAO_Participant();
index ab8f474cc881024b728a834faceff00fd99ac1a6..7781bd2cea99c2dc398c97e1c9b6d0528858e122 100644 (file)
@@ -322,7 +322,7 @@ class CRM_Event_Form_Participant extends CRM_Contribute_Form_AbstractEditPayment
           $this->_action = CRM_Core_Action::COPY;
           break;
       }
-      parent::preProcess();
+      CRM_Contact_Form_Task::preProcessCommon($this);
 
       $this->_single = FALSE;
       $this->_contactId = NULL;