Issue #22218: Fixed typo in list
authorLinda Nichols <lynnaloo@gmail.com>
Thu, 15 May 2014 15:56:28 +0000 (15:56 +0000)
committerLinda Nichols <lynnaloo@gmail.com>
Thu, 15 May 2014 15:56:28 +0000 (15:56 +0000)
lib/enyo-x/source/views/list.js
node-datasource/routes/generate_report.js

index a55b8bd..aff8026 100644 (file)
@@ -194,7 +194,7 @@ trailing:true, white:true, strict:false*/
     doEmail: function (options) {
       if (XT.session.config.emailAvailable) {
         // send it to be emailed silently by the server
-        options.model.doPrint();
+        options.model.doEmail();
       } else {
         this.openReport(XT.getOrganizationPath() + options.model.getReportUrl());
       }
index 99bb54e..4edf672 100644 (file)
@@ -283,6 +283,7 @@ regexp:true, undef:true, strict:true, trailing:true, white:true */
             formattedContent[key] = XT.String.formatBraces(reportData[0], value);
           }
         });
+
         formattedContent.text = formattedContent.body;
         formattedContent.attachments = [{fileName: reportPath, contents: data, contentType: "application/pdf"}];