Exporting a field group with child items seems to work fine into the file, but when importing it produces the following errors and the field group loses it's label in the manage fields view on user account page and the child fields are not under it
Notice: Undefined property: stdClass::$label in field_group_pack() (line 1531 of /Applications/XAMPP/xamppfiles/htdocs/stat/sites/all/modules/contrib/field_group/field_group.module).
Notice: Undefined property: stdClass::$weight in field_group_pack() (line 1532 of /Applications/XAMPP/xamppfiles/htdocs/stat/sites/all/modules/contrib/field_group/field_group.module).
Notice: Undefined property: stdClass::$children in field_group_pack() (line 1533 of /Applications/XAMPP/xamppfiles/htdocs/stat/sites/all/modules/contrib/field_group/field_group.module).
Here's the inc file
<?php
/**
* @file
* field_group.group_user_personal|user|user|form.inc
*/
$api = '2.0.0';
$data = $field_group = new stdClass();
$field_group->disabled = FALSE; /* Edit this to true to make a default field_group disabled initially */
$field_group->api_version = 1;
$field_group->identifier = 'group_user_personal|user|user|form';
$field_group->group_name = 'group_user_personal';
$field_group->entity_type = 'user';
$field_group->bundle = 'user';
$field_group->mode = 'form';
$field_group->parent_name = '';
$field_group->data = array(
'label' => 'Personal',
'weight' => '3',
'children' => array(
0 => 'field_first_name',
1 => 'field_last_name',
2 => 'field_membership_number',
3 => 'field_user_title',
),
'format_type' => 'fieldset',
'format_settings' => array(
'label' => 'Personal',
'instance_settings' => array(
'required_fields' => 1,
'classes' => '',
'description' => '',
),
'formatter' => 'collapsible',
),
);
$dependencies = array();
$optional = array();
$modules = array(
0 => 'ctools',
1 => 'field_group',
);
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 1866842.4.patch | 2.74 KB | GDrupal |
| #2 | 1866842.1.patch | 3.89 KB | GDrupal |
Comments
Comment #1
GDrupal commentedComment #2
GDrupal commented@bjalford Can you give a try to this patch? ;) thanks
Comment #3
GDrupal commentedWrong patch
Comment #4
GDrupal commented@bjalford Can you give a try to this patch? ;) thanks
Comment #5
bjalford commentedWorks well. Thanks!
Comment #6
GDrupal commentedI will commit as this patch fix the original issue, but there is still an issue detecting the status of the configuration correctly.
committed