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

merge-requests/26/head
Angie Byron 2009-11-02 00:42:06 +00:00
parent e9ef3ac2f2
commit ab91113c56
2 changed files with 2 additions and 2 deletions

View File

@ -444,7 +444,7 @@ function _batch_finished() {
$_batch['form_state']['redirect'] = $_batch['redirect'];
}
else {
$_batch['form_state']['redirect'] = $_batch['source_page'];
$_batch['form_state']['redirect'] = $_batch['source_url'];
}
}

View File

@ -3054,7 +3054,7 @@ function batch_process($redirect = NULL, $url = 'batch', $redirect_callback = 'd
'progressive' => TRUE,
'url' => $url,
'url_options' => array(),
'source_page' => $_GET['q'],
'source_url' => $_GET['q'],
'redirect' => $redirect,
'theme' => $GLOBALS['theme_key'],
'redirect_callback' => $redirect_callback,