#675414 by quicksketch: Use #limit_validation_errors() on File upload and removal.
parent
69ed7f66b8
commit
a05df263e0
|
@ -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,
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue