Import/Export: Fix export download did not download

This commit is contained in:
nathangray 2020-07-10 09:14:29 -06:00
parent 146cba903b
commit 63a320ca35
2 changed files with 2 additions and 2 deletions

View File

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

View File

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