From 10fca34cf15638eb63b6d147d448a52c73bf4baa Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 28 Aug 2010 20:12:42 +0000 Subject: #896162 by yched: Fixed Field UI 'formatter settings' form broken. --- modules/field_ui/field_ui.admin.inc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'modules/field_ui') 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' => '
', '#suffix' => '
', ); -- cgit v1.2.3