Fix issue of now not already filterinng down to object within values array
authorSeamus Lee <seamuslee001@gmail.com>
Sun, 9 Aug 2015 05:13:49 +0000 (05:13 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Sun, 9 Aug 2015 05:13:49 +0000 (05:13 +0000)
ang/crmMailing/MsgTemplateCtrl.js

index d8873075a4a34b87a7091dd76c94c99a1e3cee4e..c5147b0b627c692677f2382f05a2de8408f3eec4 100644 (file)
@@ -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;
       });
     };
   });