diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-14 10:40:55 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-09-14 10:40:55 +0000 |
commit | 00ae7949efd1d347a954d3070b0b7cce9359fa4c (patch) | |
tree | 65fe578c27f2a2a676fb08273d9fe2f53da2d9ce /includes/form.inc | |
parent | 922bf65fef34cfe4675240b613329e962f3f8d5c (diff) | |
download | brdo-00ae7949efd1d347a954d3070b0b7cce9359fa4c.tar.gz brdo-00ae7949efd1d347a954d3070b0b7cce9359fa4c.tar.bz2 |
#172824 by yched: let the batched processes perform drupal_execute() properly
Diffstat (limited to 'includes/form.inc')
-rw-r--r-- | includes/form.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/form.inc b/includes/form.inc index 74d8f54b1..ca6795c67 100644 --- a/includes/form.inc +++ b/includes/form.inc @@ -315,8 +315,10 @@ function drupal_process_form($form_id, &$form, &$form_state) { } // If batches were set in the submit handlers, we process them now, - // possibly ending execution. - if ($batch =& batch_get()) { + // possibly ending execution. We make sure we do not react to the batch + // that is already being processed (if a batch operation performs a + // drupal_execute). + if ($batch =& batch_get() && !isset($batch['current_set'])) { // The batch uses its own copies of $form and $form_state for // late execution of submit handers and post-batch redirection. $batch['form'] = $form; |