Commit ab91113c authored by webchick's avatar webchick
Browse files

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

parent e9ef3ac2
...@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment