"warning: Illegal string offset 'parent' in /cck/modules/fieldgroup/fieldgroup.module on line 607 "
Passages to reproduce:
- in the page of content type, add a new field
- in the next page, where you can configure the new field, is written for five times the error "warning: Illegal string offset 'parent' in .../cck/modules/fieldgroup/fieldgroup.module on line 607 "
Can someone help me please?
diff --git a/modules/fieldgroup/fieldgroup.module b/modules/fieldgroup/fieldgroup.module index 6b5b170..23c4f55 100644 --- a/modules/fieldgroup/fieldgroup.module +++ b/modules/fieldgroup/fieldgroup.module @@ -438,7 +438,7 @@ function fieldgroup_field_overview_form_validate($form, &$form_state) { // to get weights the user doesn't expect. foreach ($form_values as $key => $values) { - if ($values['parent'] == '_add_new_group') { + if (isset($values['parent']) && $values['parent'] == '_add_new_group') { form_set_error('_add_new_group][label', t('Add new group: you need to provide a label.')); form_set_error('_add_new_group][group_name', t('Add new group: you need to provide a group name.')); break;
Comments
Comment#1
ea2391 CreditAttribution: ea2391 commentedNo one can help me? No one experienced this issue?
Comment#2
quadbyte CreditAttribution: quadbyte commentedHaven't looked into it yet, but I can confirm the issue.
Comment#3
quadbyte CreditAttribution: quadbyte commentedComment#4
Michelle CreditAttribution: Michelle at Mediacurrent commentedMy patch is against the 2.x branch but it sounds like the same code is in the 3.x branch so it should be able to be adapted for that easily enough.
Comment#5
DamienMcKenna CreditAttribution: DamienMcKenna at Mediacurrent commented