From efd9f1697d979c5240f8253810a91e455a2c659a Mon Sep 17 00:00:00 2001 From: atif-shaikh Date: Wed, 29 Oct 2014 18:50:35 +0530 Subject: [PATCH] Additional QA Enhancement --- CRM/Event/Form/ManageEvent/Registration.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Event/Form/ManageEvent/Registration.php b/CRM/Event/Form/ManageEvent/Registration.php index cc4d7fe7de..da52a4beae 100644 --- a/CRM/Event/Form/ManageEvent/Registration.php +++ b/CRM/Event/Form/ManageEvent/Registration.php @@ -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); } -- 2.25.1