From e658064759d54e0d43872a5430ad0381366b0bcd Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 23 Dec 2010 04:26:31 +0000 Subject: #995854 by rfay, effulgentsia, sun, merlinofchaos, Damien Tournoud, manimejia: Fixed #ajax doesn't work at all if a file element (or enctype => 'multipart/form-data') is included in the form --- modules/file/file.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') diff --git a/modules/file/file.module b/modules/file/file.module index 81c6000e5..bbf3a1ae4 100644 --- a/modules/file/file.module +++ b/modules/file/file.module @@ -237,7 +237,7 @@ function file_ajax_upload() { drupal_set_message(t('An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (@size) that this server supports.', array('@size' => format_size(file_upload_max_size()))), 'error'); $commands = array(); $commands[] = ajax_command_replace(NULL, theme('status_messages')); - return array('#type' => 'ajax', '#commands' => $commands, '#header' => FALSE); + return array('#type' => 'ajax', '#commands' => $commands); } list($form, $form_state) = ajax_get_form(); @@ -247,7 +247,7 @@ function file_ajax_upload() { drupal_set_message(t('An unrecoverable error occurred. Use of this form has expired. Try reloading the page and submitting again.'), 'error'); $commands = array(); $commands[] = ajax_command_replace(NULL, theme('status_messages')); - return array('#type' => 'ajax', '#commands' => $commands, '#header' => FALSE); + return array('#type' => 'ajax', '#commands' => $commands); } // Get the current element and count the number of files. @@ -280,7 +280,7 @@ function file_ajax_upload() { $commands = array(); $commands[] = ajax_command_replace(NULL, $output, $settings); - return array('#type' => 'ajax', '#commands' => $commands, '#header' => FALSE); + return array('#type' => 'ajax', '#commands' => $commands); } /** -- cgit v1.2.3