Skip to content
Snippets Groups Projects
Commit 1cfbd859 authored by Travis Carden's avatar Travis Carden Committed by Travis Carden
Browse files

Issue #3042638 by TravisCarden: Update 8101 causes unrecoverable error, blocks database updates

parent 8c2928a8
No related branches found
No related tags found
No related merge requests found
...@@ -26,6 +26,10 @@ function checklistapiexample_update_8101() { ...@@ -26,6 +26,10 @@ function checklistapiexample_update_8101() {
$saved_progress = $old_config_storage->setChecklistId($checklist_id) $saved_progress = $old_config_storage->setChecklistId($checklist_id)
->getSavedProgress(); ->getSavedProgress();
if (!$saved_progress) {
return;
}
// Copy saved progress to new state storage. // Copy saved progress to new state storage.
/** @var \Drupal\checklistapi\Storage\StateStorage $new_state_storage */ /** @var \Drupal\checklistapi\Storage\StateStorage $new_state_storage */
$new_state_storage = \Drupal::service('checklistapi_storage.state'); $new_state_storage = \Drupal::service('checklistapi_storage.state');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment