For custom group creation, flip the default display settings
authorMatt Trim <contact@matttrim.com>
Mon, 13 Dec 2021 23:29:41 +0000 (23:29 +0000)
committerMatt Trim <contact@matttrim.com>
Mon, 13 Dec 2021 23:29:41 +0000 (23:29 +0000)
CRM/Custom/Form/Group.php

index e8e665586959c5565a2fc9d1311ec2a7555e0659..1d9db272edb643bcce1e94e2aaa9f433b4e6e228 100644 (file)
@@ -343,7 +343,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form {
       $defaults['weight'] = CRM_Utils_Weight::getDefaultWeight('CRM_Core_DAO_CustomGroup');
 
       $defaults['is_multiple'] = $defaults['min_multiple'] = 0;
-      $defaults['is_active'] = $defaults['is_public'] = $defaults['collapse_display'] = 1;
+      $defaults['is_active'] = $defaults['is_public'] = $defaults['collapse_adv_display'] = 1;
       $defaults['style'] = 'Inline';
     }
     elseif (empty($defaults['max_multiple']) && !$this->_isGroupEmpty) {