From 0b1c947ea74b7f387c414cd921c61c2e58d36ab3 Mon Sep 17 00:00:00 2001 From: atif-shaikh Date: Wed, 29 Oct 2014 18:41:07 +0530 Subject: [PATCH] QA Fix --- CRM/Event/Form/ManageEvent/Registration.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Event/Form/ManageEvent/Registration.php b/CRM/Event/Form/ManageEvent/Registration.php index 4075c3c39d..cc4d7fe7de 100644 --- a/CRM/Event/Form/ManageEvent/Registration.php +++ b/CRM/Event/Form/ManageEvent/Registration.php @@ -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']); -- 2.25.1