diff --git a/api/js/jsapi/egw_app.ts b/api/js/jsapi/egw_app.ts index d8d322147c..71af5170b3 100644 --- a/api/js/jsapi/egw_app.ts +++ b/api/js/jsapi/egw_app.ts @@ -927,6 +927,7 @@ export abstract class EgwApp options : { [p : string] : string | boolean } }> { + // Check path from action and user's preferred path let path = action?.data?.merge_data?.directory ?? ""; let dirPref = this.egw.preference('document_dir', this.appname) ?? ""; let dirs = dirPref.split('/[,\s]+\//'); @@ -937,6 +938,9 @@ export abstract class EgwApp d = "/" + d; } }); + dirs.push(path); + dirs = dirs.filter((d, index, array) => (d && array.indexOf(d) === index)); + let fileSelect = loadWebComponent('et2-merge-dialog', { application: this.appname, path: dirs.pop() || ""