Skip to content
Snippets Groups Projects
Commit 056e1b06 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

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

parent bcdf1339
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -261,10 +261,10 @@ 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';
}
}
}
/**
* Implementation of hook_file_load().
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment