From 6cd908585bde65d5024c045768901771ba538448 Mon Sep 17 00:00:00 2001 From: Ian Date: Tue, 22 Oct 2024 04:02:25 -0300 Subject: [PATCH] Delete date not being copied causing duplicate (#8454) 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); }