diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php index 7da983c..28540c7 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityStorage.php @@ -473,7 +473,12 @@ public function updateFromStorageRecord(ConfigEntityInterface $entity, array $va $updated_entity = current($data); $properties = $entity->_getPropertiesToExport(); + $uuid_key = $this->getEntityType()->getKey('uuid'); foreach ($properties as $property) { + if ($property === $uuid_key) { + // The UUID field should not be copied. + continue; + } $entity->set($property, $updated_entity->get($property)); } diff --git a/core/modules/views_ui/src/ViewUI.php b/core/modules/views_ui/src/ViewUI.php index 6195c8c..1ca9723 100644 --- a/core/modules/views_ui/src/ViewUI.php +++ b/core/modules/views_ui/src/ViewUI.php @@ -1348,4 +1348,11 @@ public function addCacheTags(array $cache_tags) { return $this->storage->addCacheTags($cache_tags); } + /** + * @inheritDoc + */ + public function _getPropertiesToExport() { + return $this->storage->_getPropertiesToExport(); + } + }