From 63a320ca353e898889cf3e118bf5970881a8e122 Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 10 Jul 2020 09:14:29 -0600 Subject: [PATCH] Import/Export: Fix export download did not download --- importexport/js/app.js | 2 +- importexport/js/app.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/importexport/js/app.js b/importexport/js/app.js index 76d640944f..ad39879079 100644 --- a/importexport/js/app.js +++ b/importexport/js/app.js @@ -84,7 +84,7 @@ var ImportExportApp = /** @class */ (function (_super) { */ ImportExportApp.prototype.download = function (data) { // Try to get the file to download in the parent window - var app_templates = this.egw.top.etemplate2.getByApplication(framework.activeApp); + var app_templates = this.egw.top.etemplate2.getByApplication(framework.activeApp.appName); if (app_templates.length > 0) { app_templates[0].download(data); } diff --git a/importexport/js/app.ts b/importexport/js/app.ts index 888a79c406..4116ea37ff 100644 --- a/importexport/js/app.ts +++ b/importexport/js/app.ts @@ -86,7 +86,7 @@ class ImportExportApp extends EgwApp download(data:string) { // Try to get the file to download in the parent window - let app_templates = this.egw.top.etemplate2.getByApplication(framework.activeApp); + let app_templates = this.egw.top.etemplate2.getByApplication(framework.activeApp.appName); if(app_templates.length > 0) { app_templates[0].download(data);