Skip to content
Snippets Groups Projects
Commit ab91113c authored by Angie Byron's avatar Angie Byron
Browse files

#617420 by ksenzee: Fixed batch system error on redirection.

parent e9ef3ac2
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
...@@ -444,7 +444,7 @@ function _batch_finished() { ...@@ -444,7 +444,7 @@ function _batch_finished() {
$_batch['form_state']['redirect'] = $_batch['redirect']; $_batch['form_state']['redirect'] = $_batch['redirect'];
} }
else { else {
$_batch['form_state']['redirect'] = $_batch['source_page']; $_batch['form_state']['redirect'] = $_batch['source_url'];
} }
} }
......
...@@ -3054,7 +3054,7 @@ function batch_process($redirect = NULL, $url = 'batch', $redirect_callback = 'd ...@@ -3054,7 +3054,7 @@ function batch_process($redirect = NULL, $url = 'batch', $redirect_callback = 'd
'progressive' => TRUE, 'progressive' => TRUE,
'url' => $url, 'url' => $url,
'url_options' => array(), 'url_options' => array(),
'source_page' => $_GET['q'], 'source_url' => $_GET['q'],
'redirect' => $redirect, 'redirect' => $redirect,
'theme' => $GLOBALS['theme_key'], 'theme' => $GLOBALS['theme_key'],
'redirect_callback' => $redirect_callback, 'redirect_callback' => $redirect_callback,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment