summaryrefslogtreecommitdiff
path: root/modules/field_ui
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-08-28 20:12:42 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-08-28 20:12:42 +0000
commit10fca34cf15638eb63b6d147d448a52c73bf4baa (patch)
tree73969b70913ed8da3b0a092ff6a5c730385fca6b /modules/field_ui
parent8215f5af03f26590ed5df242670778215d71073a (diff)
downloadbrdo-10fca34cf15638eb63b6d147d448a52c73bf4baa.tar.gz
brdo-10fca34cf15638eb63b6d147d448a52c73bf4baa.tar.bz2
#896162 by yched: Fixed Field UI 'formatter settings' form broken.
Diffstat (limited to 'modules/field_ui')
-rw-r--r--modules/field_ui/field_ui.admin.inc10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/field_ui/field_ui.admin.inc b/modules/field_ui/field_ui.admin.inc
index 3ef665b87..2e0392ff8 100644
--- a/modules/field_ui/field_ui.admin.inc
+++ b/modules/field_ui/field_ui.admin.inc
@@ -840,8 +840,9 @@ function field_ui_display_overview_form($form, &$form_state, $entity_type, $bund
'#name' => $name . '_formatter_settings_cancel',
'#value' => t('Cancel'),
'#op' => 'cancel',
- // Do not check errors for the 'Cancel' button.
- '#limit_validation_errors' => array(),
+ // Do not check errors for the 'Cancel' button. We still need the
+ // value of the 'formatter type' select in $form_state['values'].
+ '#limit_validation_errors' => array(array('settings', $name, 'type'))
);
$table[$name]['#settings_editing'] = TRUE;
// When formatter is changed, cancel the currently edited settings. The
@@ -865,8 +866,9 @@ function field_ui_display_overview_form($form, &$form_state, $entity_type, $bund
'#src' => 'misc/configure.png',
'#attributes' => array('class' => array('field-formatter-settings-edit'), 'alt' => t('Edit')),
'#op' => 'edit',
- // Do not check errors for the 'Edit' button.
- '#limit_validation_errors' => array(),
+ // Do not check errors for the 'Edit' button. We still need the value
+ // of the 'formatter type' select in $form_state['values'].
+ '#limit_validation_errors' => array(array('settings', $name, 'type')),
'#prefix' => '<div class="field-formatter-settings-edit-wrapper">',
'#suffix' => '</div>',
);