From 89c6ba5b9ac801ce424e046c6f557084679648fe Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Sun, 9 Aug 2015 05:13:49 +0000 Subject: [PATCH] Fix issue of now not already filterinng down to object within values array --- ang/crmMailing/MsgTemplateCtrl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ang/crmMailing/MsgTemplateCtrl.js b/ang/crmMailing/MsgTemplateCtrl.js index d8873075a4..c5147b0b62 100644 --- a/ang/crmMailing/MsgTemplateCtrl.js +++ b/ang/crmMailing/MsgTemplateCtrl.js @@ -33,9 +33,9 @@ // @return Promise $scope.loadTemplate = function loadTemplate(mailing, id) { return crmMsgTemplates.get(id).then(function(tpl) { - mailing.subject = tpl.msg_subject; - mailing.body_text = tpl.msg_text; - mailing.body_html = tpl.msg_html; + mailing.subject = tpl.values[0].msg_subject; + mailing.body_text = tpl.values[0].msg_text; + mailing.body_html = tpl.values[0].msg_html; }); }; }); -- 2.25.1