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

- Patch #147501 by yched: fixed reordering of parameters in batch engine.

parent a55c0d67
No related branches found
No related tags found
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
...@@ -235,7 +235,7 @@ function _batch_next_set() { ...@@ -235,7 +235,7 @@ function _batch_next_set() {
if (isset($current_set['form_submit']) && ($function = $current_set['form_submit']) && function_exists($function)) { if (isset($current_set['form_submit']) && ($function = $current_set['form_submit']) && function_exists($function)) {
// We use our stored copies of $form and $form_state, to account for // We use our stored copies of $form and $form_state, to account for
// possible alteration by the submit handlers. // possible alteration by the submit handlers.
$function($batch['form_state']['values'], $batch['form'], $batch['form_state']); $function($batch['form'], $batch['form_state'], $batch['form_state']['values']);
} }
return TRUE; return TRUE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment