Verified Commit f508cabb authored by Jess's avatar Jess
Browse files

Issue #3254446 by catch: Log the exception rather than aborting the update if...

Issue #3254446 by catch: Log the exception rather than aborting the update if a configuration item does not exist in system_post_update_sort_all_config()

(cherry picked from commit 6eb195c0)
parent d83d02a8
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -223,8 +223,13 @@ function system_post_update_sort_all_config(&$sandbox) {
  $start = $sandbox['progress'];
  $end = min($sandbox['max'], $start + $iteration_size);
  for ($i = $start; $i < $end; $i++) {
    try {
      $factory->getEditable($sandbox['all_config_names'][$i])->save();
    }
    catch (\Exception $e) {
      watchdog_exception('system', $e);
    }
  }

  if ($sandbox['max'] > 0 && $end < $sandbox['max']) {
    $sandbox['progress'] = $end;