dev/core#272 : Fatal Error (Regression) on PCP pages associated with Events
authordeb.monish <monish.deb@jmaconsulting.biz>
Sun, 22 Jul 2018 06:20:43 +0000 (11:50 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Sun, 22 Jul 2018 07:33:59 +0000 (13:03 +0530)
CRM/Event/Form/Registration.php

index 7c10574c6043d6490d522dc3839271e958403cf3..e284d2daf1db4d919a387fcc0646d419b454500c 100644 (file)
@@ -196,7 +196,7 @@ class CRM_Event_Form_Registration extends CRM_Core_Form {
    */
   public function preProcess() {
     $this->_eventId = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE);
-    $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE);
+    $this->_action = CRM_Utils_Request::retrieve('action', 'Alphanumeric', $this, FALSE, CRM_Core_Action::ADD);
 
     //CRM-4320
     $this->_participantId = CRM_Utils_Request::retrieve('participantId', 'Positive', $this);