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 6eb195c0a0
)
merge-requests/1427/merge
parent
d83d02a815
commit
f508cabb8d
|
@ -223,7 +223,12 @@ function system_post_update_sort_all_config(&$sandbox) {
|
|||
$start = $sandbox['progress'];
|
||||
$end = min($sandbox['max'], $start + $iteration_size);
|
||||
for ($i = $start; $i < $end; $i++) {
|
||||
$factory->getEditable($sandbox['all_config_names'][$i])->save();
|
||||
try {
|
||||
$factory->getEditable($sandbox['all_config_names'][$i])->save();
|
||||
}
|
||||
catch (\Exception $e) {
|
||||
watchdog_exception('system', $e);
|
||||
}
|
||||
}
|
||||
|
||||
if ($sandbox['max'] > 0 && $end < $sandbox['max']) {
|
||||
|
|
Loading…
Reference in New Issue