#675414 by quicksketch: Use #limit_validation_errors() on File upload and removal.

merge-requests/26/head
Angie Byron 2010-01-11 16:26:40 +00:00
parent 69ed7f66b8
commit a05df263e0
1 changed files with 2 additions and 0 deletions

View File

@ -366,6 +366,7 @@ function file_managed_file_process($element, &$form_state, $form) {
'#value' => t('Upload'),
'#validate' => array(),
'#submit' => array('file_managed_file_submit'),
'#limit_validation_errors' => array($element['#parents']),
'#ajax' => $ajax_settings,
'#weight' => -5,
);
@ -379,6 +380,7 @@ function file_managed_file_process($element, &$form_state, $form) {
'#value' => t('Remove'),
'#validate' => array(),
'#submit' => array('file_managed_file_submit'),
'#limit_validation_errors' => array($element['#parents']),
'#ajax' => $ajax_settings,
'#weight' => -5,
);