From e35324f1c0234590268aef2aa9c06d7530d6d1bf Mon Sep 17 00:00:00 2001
From: Bogdan Cochior <bogdan.cochior@thinslices.com>
Date: Wed, 4 Jul 2018 11:32:59 +0300
Subject: [PATCH] fix(mails): redirect HE to new manuscript version

fix #HIN-758
---
 packages/component-mail-service/src/Mail.js                     | 2 +-
 .../component-manuscript-manager/src/routes/fragments/patch.js  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/component-mail-service/src/Mail.js b/packages/component-mail-service/src/Mail.js
index 999b40758..423416d48 100644
--- a/packages/component-mail-service/src/Mail.js
+++ b/packages/component-mail-service/src/Mail.js
@@ -593,7 +593,7 @@ module.exports = {
         replacements.beforeAnchor =
           'Previous reviewers have been automatically invited to review the manuscript again. Please visit the'
         replacements.afterAnchor =
-          'to see the latest version and any other actions you may need to take.'
+          'to see the latest version and any other actions you may need to take'
 
         replacements.signatureName = meta.eicName
         textBody = `${replacements.intro} ${replacements.paragraph} ${
diff --git a/packages/component-manuscript-manager/src/routes/fragments/patch.js b/packages/component-manuscript-manager/src/routes/fragments/patch.js
index d32334dcf..af3511344 100644
--- a/packages/component-manuscript-manager/src/routes/fragments/patch.js
+++ b/packages/component-manuscript-manager/src/routes/fragments/patch.js
@@ -121,7 +121,7 @@ module.exports = models => async (req, res) => {
     const email = new Email({
       authors,
       collection,
-      parsedFragment,
+      parsedFragment: { ...parsedFragment, id: fragment.id },
       UserModel: models.User,
       baseUrl: services.getBaseUrl(req),
     })
-- 
GitLab