From 47243d17069d2170f1cf7dd70f0769399faa11dd Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 19 Jan 2023 13:36:49 -0700 Subject: [PATCH] Importexport: Fix clicking icon from list did not open correct url --- importexport/js/app.ts | 21 +++++++++++++++++++ .../templates/default/definition_index.xet | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/importexport/js/app.ts b/importexport/js/app.ts index 6902294dbe..fbc44a4285 100644 --- a/importexport/js/app.ts +++ b/importexport/js/app.ts @@ -203,6 +203,27 @@ class ImportExportApp extends EgwApp widget.set_value(value); } } + + /** + * Open a specific import/export definition dialog by clicking on the icon from the list + * @param widget + */ + open_definition(event, widget) + { + const mgr = widget.getArrayMgr("content"); + const data = mgr.getEntry(mgr.perspectiveData.row) || {}; + const type = data.type || ""; + const application = data.application || ""; + const definition_id = data.definition_id || ""; + this.egw.openPopup( + this.egw.link("/index.php", { + menuaction: "importexport.importexport_" + type + "_ui." + type + "_dialog", + appname: application, + definition: definition_id + }), + 850, 440 + ) + } } app.classes.importexport = ImportExportApp; diff --git a/importexport/templates/default/definition_index.xet b/importexport/templates/default/definition_index.xet index 4afaee43a6..6fd98f044b 100644 --- a/importexport/templates/default/definition_index.xet +++ b/importexport/templates/default/definition_index.xet @@ -20,7 +20,8 @@ - +