From: Seamus Lee Date: Sun, 9 Aug 2015 05:13:49 +0000 (+0000) Subject: Fix issue of now not already filterinng down to object within values array X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=89c6ba5b9ac801ce424e046c6f557084679648fe;p=civicrm-core.git Fix issue of now not already filterinng down to object within values array --- 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; }); }; });