Do not pass in subType as the same value will be calculated
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 15 Jul 2023 00:25:20 +0000 (12:25 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sat, 15 Jul 2023 00:25:20 +0000 (12:25 +1200)
CRM/Contact/Form/Edit/CustomData.php

index 4f1b517802cd24ea7f4013930ce5158d9f2c7672..61bb1c36348e0fa6c03f7415c50001a33f03d8be 100644 (file)
@@ -27,7 +27,6 @@ class CRM_Contact_Form_Edit_CustomData {
    */
   public static function preProcess(&$form) {
     $form->_type = CRM_Utils_Request::retrieve('type', 'String');
-    $form->_subType = CRM_Utils_Request::retrieve('subType', 'String');
 
     //build the custom data as other blocks.
     //$form->assign( "addBlock", false );
@@ -37,7 +36,7 @@ class CRM_Contact_Form_Edit_CustomData {
       $form->assign("blockName", $form->_addBlockName);
     }
 
-    CRM_Custom_Form_CustomData::preProcess($form, NULL, $form->_subType, NULL,
+    CRM_Custom_Form_CustomData::preProcess($form, NULL, NULL, NULL,
       ($form->_type) ? $form->_type : $form->_contactType
     );