Permalink
Browse files

Merge pull request #265 from shackbarth/19647

issue #19647: different names for list vs form reports
  • Loading branch information...
shackbarth committed Apr 11, 2013
2 parents e6e8496 + 055f76c commit d4cbb096bd6c0d3147060fc8382b33949dfc8803
Showing with 2 additions and 2 deletions.
  1. +2 −2 node-datasource/routes/report.js
@@ -76,7 +76,8 @@ regexp:true, undef:true, strict:true, trailing:true, white:true */
var queryForDataCallback = function (result) {
var recordType = requestDetails.query ? requestDetails.query.recordType : requestDetails.recordType,
- modelName = recordType.suffix().replace("ListItem", "").replace("Relation", "");
+ modelName = recordType.suffix().replace("ListItem", "").replace("Relation", ""),
+ fileName = recordType.suffix().replace("ListItem", "List").replace("Relation", "List") + ".prpt";
if (result.isError) {
res.send(result);
@@ -102,7 +103,6 @@ regexp:true, undef:true, strict:true, trailing:true, white:true */
},
success = function () {
var biUrl = X.options.datasource.biUrl || "",
- fileName = modelName + "List.prpt",
redirectUrl = biUrl + "&name=" + fileName + "&dataKey=" + randomKey;
if (requestDetails.locale && requestDetails.locale.culture) {

0 comments on commit d4cbb09

Please sign in to comment.