Fix a forms validation problem
This commit is contained in:
parent
2c186c8bd5
commit
c7c7976695
1 changed files with 1 additions and 1 deletions
|
@ -604,7 +604,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;
|
||||
|
|
Reference in a new issue