Skip to content

Commit

Permalink
Merge changes from develop.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdpdeploy committed Mar 6, 2024
2 parents 6fd217b + b2a0765 commit cfc66a5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tide_core.install
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,11 @@ function tide_core_update_10003() {
foreach ($configs as $config => $type) {
$config_read = _tide_read_config($config, $config_location, TRUE);
$storage = \Drupal::entityTypeManager()->getStorage($type);
$config_entity = $storage->createFromStorageRecord($config_read);
$config_entity->save();
$id = substr($config, strrpos($config, '.') + 1);
if ($storage->load($id) == NULL) {
$config_entity = $storage->createFromStorageRecord($config_read);
$config_entity->save();
}
}

$form_configs = [
Expand Down

0 comments on commit cfc66a5

Please sign in to comment.