summaryrefslogtreecommitdiffstatshomepage
path: root/core/includes/batch.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/includes/batch.inc')
-rw-r--r--core/includes/batch.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/includes/batch.inc b/core/includes/batch.inc
index 8a8f7f2624d..47f85ed30b0 100644
--- a/core/includes/batch.inc
+++ b/core/includes/batch.inc
@@ -470,7 +470,7 @@ function _batch_finished() {
// If no redirection happened, redirect to the originating page. In case the
// form needs to be rebuilt, save the final $form_state for
// \Drupal\Core\Form\FormBuilderInterface::buildForm().
- if (!empty($_batch['form_state']['rebuild'])) {
+ if ($_batch['form_state']->isRebuilding()) {
$_SESSION['batch_form_state'] = $_batch['form_state'];
}
$callback = $_batch['redirect_callback'];