From d0393b6223e28823fa9d3ccc9d8957275747dfea Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Fri, 17 Apr 2020 12:13:32 +0100 Subject: [PATCH] Fixed {subscriber_firstname} not picking up member's name in emails no issue - in our replacements the member properties are prefixed with `subscriber_` but this wasn't taken into account when requesting data from the member object --- core/server/services/mega/mega.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/services/mega/mega.js b/core/server/services/mega/mega.js index 399df30328..5ad5772df6 100644 --- a/core/server/services/mega/mega.js +++ b/core/server/services/mega/mega.js @@ -31,7 +31,7 @@ const getEmailData = async (postModel, members = []) => { replacements.push({ varName, - memberProp, + memberProp: memberProp.replace('subscriber_', ''), fallback }); return `%recipient.${varName}%`;