Commit 8a4451e3 authored by Dries's avatar Dries

- Patch #146470 by ax: fixed typo in Form API3 conversion.

parent 4d8f12f9
......@@ -914,7 +914,7 @@ function upload_js() {
);
drupal_alter('form', $form, array(), 'upload_js');
$form_state = array('submitted' => FALSE);
$form = form_builder('upload_js', $form, array());
$form = form_builder('upload_js', $form, $form_state);
$output = theme('status_messages') . drupal_render($form);
// We send the updated file attachments form.
print drupal_to_js(array('status' => TRUE, 'data' => $output));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment