--- /home/hw/Downloads/drupal-file-2009014-18.patch 2013-07-02 12:24:59.789565354 +0530 +++ /home/hw/Downloads/drupal-file-2009014-20.patch 2013-07-02 12:38:50.345589358 +0530 @@ -65,7 +65,7 @@ + return empty($rows) ? '' : drupal_render($build); } diff --git a/core/modules/file/file.module b/core/modules/file/file.module -index bcdb460..dc45c0c 100644 +index bcdb460..d9f6ca9 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -740,7 +740,8 @@ function file_ajax_upload() { @@ -98,14 +98,15 @@ $output = drupal_render($form); $js = drupal_add_js(); $settings = drupal_merge_js_settings($js['settings']['data']); -@@ -957,16 +960,17 @@ function file_managed_file_process($element, &$form_state, $form) { +@@ -956,17 +959,18 @@ function file_managed_file_process($element, &$form_state, $form) { + if (!empty($fids) && $element['#files']) { foreach ($element['#files'] as $delta => $file) { ++ $file_link = array( ++ '#theme' => 'file_link', ++ '#file' => $file, ++ ); if ($element['#multiple']) { -+ $file_link = array( -+ '#theme' => 'file_link', -+ '#file' => $file, -+ ); $element['file_' . $delta]['selected'] = array( '#type' => 'checkbox', - '#title' => theme('file_link', array('file' => $file)) . ' ',