From cbcc64bff7b66ac4d75fd7ab0bf91a85ad5dec37 Mon Sep 17 00:00:00 2001 From: Audrey Hamelers Date: Tue, 17 Dec 2024 12:09:58 +0100 Subject: [PATCH] Closes https://github.com/datadryad/dryad-product-roadmap/issues/3830 --- app/models/stash_engine/resource.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/stash_engine/resource.rb b/app/models/stash_engine/resource.rb index 4ae53eb80..1a767c4a1 100644 --- a/app/models/stash_engine/resource.rb +++ b/app/models/stash_engine/resource.rb @@ -1134,6 +1134,7 @@ def create_post_submission_status(prior_cur_act) # create submitted status curation_activities << StashEngine::CurationActivity.create(user_id: attribution, status: target_status, note: curation_note) # immediately create published status + update(publication_date: previous_resource.publication_date) target_status = previous_resource.last_curation_activity.status curation_note = "Auto-published with minimal changes to #{changes.join(', ')}" end