From: atif-shaikh Date: Wed, 29 Oct 2014 13:11:07 +0000 (+0530) Subject: QA Fix X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0b1c947ea74b7f387c414cd921c61c2e58d36ab3;p=civicrm-core.git QA Fix --- 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']);