}
}
}
+ // Having a group_title is secret code for being a custom group
+ // which cryptically translates to needing an accordion.
+ // here we make that explicit.
+ $colGroups[$tableName]['use_accordian_for_field_selection'] = !$groupTitle && isset($table['group_title']);
- if (!$groupTitle && isset($table['group_title'])) {
- $groupTitle = $table['group_title'];
- // Having a group_title is secret code for being a custom group
- // which cryptically translates to needing an accordion.
- // here we make that explicit.
- $colGroups[$tableName]['use_accordian_for_field_selection'] = TRUE;
+ if (!$groupTitle) {
+ $groupTitle = $table['group_title'] ?? NULL;
}
$colGroups[$tableName]['fields'][$fieldName] = $field['title'] ?? NULL;