From 0433e24e9d23e55eb8b41110aa52cb6bd0ab188a Mon Sep 17 00:00:00 2001 From: Ian Allen Date: Mon, 21 Oct 2024 12:22:17 -0300 Subject: [PATCH] Delete date not being copied causing duplicate Fixes issue #8452 --- .../fao/geonet/kernel/datamanager/draft/DraftMetadataUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/org/fao/geonet/kernel/datamanager/draft/DraftMetadataUtils.java b/core/src/main/java/org/fao/geonet/kernel/datamanager/draft/DraftMetadataUtils.java index c5cc81ad1da..21cf26e85bd 100644 --- a/core/src/main/java/org/fao/geonet/kernel/datamanager/draft/DraftMetadataUtils.java +++ b/core/src/main/java/org/fao/geonet/kernel/datamanager/draft/DraftMetadataUtils.java @@ -677,6 +677,7 @@ private void cloneStoreFileUploadRequests(AbstractMetadata original, AbstractMet metadataFileUpload.setFileSize(mfu.getFileSize()); metadataFileUpload.setUploadDate(mfu.getUploadDate()); metadataFileUpload.setUserName(mfu.getUserName()); + metadataFileUpload.setDeletedDate(mfu.getDeletedDate()); repo.save(metadataFileUpload); }