diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-11 16:26:40 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-01-11 16:26:40 +0000 |
commit | a05df263e06831e39900f3dd7ec34389cb9440a7 (patch) | |
tree | a9abbba676b58de0944d21965212c425a7209f55 /modules/file/file.module | |
parent | 69ed7f66b8e846e90e1540e36693e518936a23bb (diff) | |
download | brdo-a05df263e06831e39900f3dd7ec34389cb9440a7.tar.gz brdo-a05df263e06831e39900f3dd7ec34389cb9440a7.tar.bz2 |
#675414 by quicksketch: Use #limit_validation_errors() on File upload and removal.
Diffstat (limited to 'modules/file/file.module')
-rw-r--r-- | modules/file/file.module | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/file/file.module b/modules/file/file.module index 5a483e972..bbf98f073 100644 --- a/modules/file/file.module +++ b/modules/file/file.module @@ -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, ); |