CRM-16055 enotice fix on ajax
authorEileen McNaughton <eileen@fuzion.co.nz>
Mon, 16 Mar 2015 11:16:01 +0000 (00:16 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Mon, 16 Mar 2015 12:35:34 +0000 (01:35 +1300)
CRM/Contact/Page/AJAX.php

index 87013b43ea7a71c66c36159a03bcd492052a15b8..0d3364e1461f1fb5e1d079363103840916cfeeae 100644 (file)
@@ -804,7 +804,8 @@ LIMIT {$offset}, {$rowCount}
   public static function getContactRelationships() {
     $contactID = CRM_Utils_Type::escape($_GET['cid'], 'Integer');
     $context = CRM_Utils_Type::escape($_GET['context'], 'String');
-    $relationship_type_id = CRM_Utils_Type::escape($_GET['relationship_type_id'], 'Integer', FALSE);
+    $relationship_type_id = CRM_Utils_Type::escape(CRM_Utils_Array::value('relationship_type_id', $_GET), 'Integer',
+      FALSE);
 
     if (!CRM_Contact_BAO_Contact_Permission::allow($contactID)) {
       return CRM_Utils_System::permissionDenied();