Index: views.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/views.module,v
retrieving revision 1.321
diff -u -r1.321 views.module
--- views.module	2 Dec 2008 19:49:55 -0000	1.321
+++ views.module	8 Dec 2008 09:59:07 -0000
@@ -899,6 +899,15 @@
  * Be sure that $view and $display are references.
  */
 function views_exposed_form(&$form_state) {
+  // Don't show the form when batch operations are in progress.
+  $batch =& batch_get();
+  if (!empty($batch)) {
+    return array(
+      // Set the theme callback to be nothing to avoid errors in template_preprocess_views_exposed_form().
+      '#theme' => '',
+    );
+  }
+
   // Make sure that we validate because this form might be submitted
   // multiple times per page.
   $form_state['must_validate'] = TRUE;

