Additional QA Enhancement
authoratif-shaikh <shaikh388@gmail.com>
Wed, 29 Oct 2014 13:20:35 +0000 (18:50 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Wed, 29 Oct 2014 13:20:35 +0000 (18:50 +0530)
CRM/Event/Form/ManageEvent/Registration.php

index cc4d7fe7de561d77eb09a5e344e3308631d5c3f1..da52a4beae28778f5edfe802836223711a8a88eb 100644 (file)
@@ -382,9 +382,9 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent
     //CRM-15427
     $id = CRM_Utils_Request::retrieve( 'id' , 'Integer' );
     if ($id) {
-      $participantEventType = CRM_Core_DAO::getFieldValue("CRM_Event_DAO_Event", $_GET['id'], 'event_type_id', 'id');
-      $participantRole  = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $_GET['id'], 'default_role_id');
-      $configs['allowSubTypes']['ParticipantEventName'] = array($_GET['id']);
+      $participantEventType = CRM_Core_DAO::getFieldValue("CRM_Event_DAO_Event", $id, 'event_type_id', 'id');
+      $participantRole  = CRM_Core_DAO::getFieldValue('CRM_Event_DAO_Event', $id, 'default_role_id');
+      $configs['allowSubTypes']['ParticipantEventName'] = array($id);
       $configs['allowSubTypes']['ParticipantEventType'] = array($participantEventType);
       $configs['allowSubTypes']['ParticipantRole'] = array($participantRole);
     }