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);