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

#717148 by adrian: Fixed tons of duplication of information during update.php batch.

parent a8eddb0d
Branches
Tags
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
......@@ -708,7 +708,7 @@ function update_do_one($module, $number, $dependency_map, &$context) {
// If this update was aborted in a previous step, or has a dependency that
// was aborted in a previous step, go no further.
if (!empty($context['results']['#abort']) && array_intersect($context['results']['#abort'], array_merge($dependency_map[$function], array($function)))) {
if (!empty($context['results']['#abort']) && array_intersect($context['results']['#abort'], array_merge($dependency_map, array($function)))) {
return;
}
......@@ -821,7 +821,8 @@ function update_batch($start, $redirect = NULL, $url = NULL, $batch = array(), $
unset($start[$update['module']]);
}
// Add this update function to the batch.
$operations[] = array('update_do_one', array($update['module'], $update['number'], $dependency_map));
$function = $update['module'] . '_update_' . $update['number'];
$operations[] = array('update_do_one', array($update['module'], $update['number'], $dependency_map[$function]));
}
}
$batch['operations'] = $operations;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment