### Eclipse Workspace Patch 1.0
#P drupal_test_7
Index: modules/filter/filter.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v
retrieving revision 1.244
diff -u -r1.244 filter.module
--- modules/filter/filter.module	15 Mar 2009 01:53:16 -0000	1.244
+++ modules/filter/filter.module	23 Mar 2009 23:47:52 -0000
@@ -485,15 +485,15 @@
 function filter_form($value = FILTER_FORMAT_DEFAULT, $weight = NULL, $parents = array('format')) {
   $value = filter_resolve_format($value);
   $formats = filter_formats();
-  
+
   $form = array(
    '#type' => 'fieldset',
    '#weight' => $weight,
    '#attributes' => array('class' => 'filter-wrapper'),
   );
-  
+
   $element_id = form_clean_id('edit-' . implode('-', $parents));
-   
+
   if (count($formats) > 1) {
     foreach ($formats as $format) {
       $options[$format->format] = $format->name;
@@ -515,7 +515,7 @@
     $format = array_shift($formats);
     unset($format->name);
     $guidelines = array('#markup' => theme('filter_guidelines', $format));
-    $form[$format->format] = array('#type' => 'value', '#value' => $format->format, '#parents' => $parents);
+    $form['format'] = array('#type' => 'value', '#value' => $format->format, '#parents' => $parents);
   }
   $form['format_help'] = array('#markup' => '<div id="' . $element_id . '-help" class="filter-help">' . theme('filter_tips_more_info') . '</div>');
   $form['format_guidelines'] = array_merge($guidelines, array('#prefix' => '<div id="' . $element_id . '-guidelines" class="filter-guidelines">', '#suffix' => '</div>'));
