CRM-20741 - Cancellation message shown as error
authoryashodha <yashodha@cividesk.com>
Fri, 16 Jun 2017 09:46:43 +0000 (15:16 +0530)
committeryashodha <yashodha@cividesk.com>
Fri, 16 Jun 2017 09:46:43 +0000 (15:16 +0530)
CRM/Event/Form/Registration/ParticipantConfirm.php

index ff7d7b856b0e64d6be45fadc9909317e57e038cf..2d134f3950dcf30a5f0f8660a61b0f020b8d6ae1 100644 (file)
@@ -213,9 +213,8 @@ class CRM_Event_Form_Registration_ParticipantConfirm extends CRM_Event_Form_Regi
       }
 
       $this->postProcessHook();
-
-      CRM_Core_Error::statusBounce($statusMessage,
-        CRM_Utils_System::url('civicrm/event/info',
+      CRM_Core_Session::setStatus($statusMessage);
+      CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm/event/info',
           "reset=1&id={$this->_eventId}&noFullMsg=1",
           FALSE, NULL, FALSE, TRUE
         )