Commit 056e1b06 authored by Dries's avatar Dries
Browse files

- Patch #347485 by cdale: don't add upload node submit handler unless necessary.

parent bcdf1339
......@@ -261,8 +261,8 @@ function upload_form_alter(&$form, $form_state, $form_id) {
$form['attachments']['wrapper'] += _upload_form($node);
$form['#attributes']['enctype'] = 'multipart/form-data';
}
$form['#submit'][] = 'upload_node_form_submit';
}
$form['#submit'][] = 'upload_node_form_submit';
}
}
......
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