QA Fix
authoratif-shaikh <shaikh388@gmail.com>
Wed, 29 Oct 2014 13:11:07 +0000 (18:41 +0530)
committeratif-shaikh <shaikh388@gmail.com>
Wed, 29 Oct 2014 13:11:07 +0000 (18:41 +0530)
CRM/Event/Form/ManageEvent/Registration.php

index 4075c3c39d306c42bb7773618a54e7ee8f4e1e8a..cc4d7fe7de561d77eb09a5e344e3308631d5c3f1 100644 (file)
@@ -380,7 +380,8 @@ class CRM_Event_Form_ManageEvent_Registration extends CRM_Event_Form_ManageEvent
     $configs['allowCoreTypes'][] = 'Individual';
     $configs['allowCoreTypes'][] = 'Participant';
     //CRM-15427
-    if (!empty($_GET['id']) && is_numeric($_GET['id'])) {
+    $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']);