From 3fc9fde8c95962097c6360790af45f570e9ae2e3 Mon Sep 17 00:00:00 2001 From: Md Nadim Hossain Date: Tue, 11 Jul 2023 19:27:36 +1000 Subject: [PATCH] [SDPAP-7999] Updated the hook to check the existing cofig id properly. --- tide_site.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tide_site.install b/tide_site.install index be10108..9d8b1da 100644 --- a/tide_site.install +++ b/tide_site.install @@ -683,7 +683,7 @@ function tide_site_update_8026() { foreach ($configs as $config => $type) { $config_read = _tide_read_config($config, $config_location, TRUE); $storage = \Drupal::entityTypeManager()->getStorage($type); - $id = substr($config, strrpos($config, '.') + 1); + $id = $storage->getIDFromConfigName($config, $storage->getEntityType()->getConfigPrefix()); if ($storage->load($id) == NULL) { $config_entity = $storage->createFromStorageRecord($config_read); $config_entity->save();