From f722619f1760d91a7d276140e3450676cfafadca Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 18 Aug 2023 09:41:00 -0600 Subject: [PATCH] Importexport: Fix first definition in list could not be executed directly with type button CreateObject(importexport__ui) file /var/www/epl-trunk/importexport/inc/class.importexport__ui.inc.php not found! (100) --- importexport/inc/class.importexport_definitions_bo.inc.php | 1 + importexport/js/app.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_definitions_bo.inc.php b/importexport/inc/class.importexport_definitions_bo.inc.php index aa3885172b..dae7f8fc3b 100644 --- a/importexport/inc/class.importexport_definitions_bo.inc.php +++ b/importexport/inc/class.importexport_definitions_bo.inc.php @@ -44,6 +44,7 @@ class importexport_definitions_bo { public function get_rows(&$query, &$rows, &$readonlys) { + $sql = ''; // Filter only definitions user is allowed to use if(!$GLOBALS['egw_info']['user']['apps']['admin']) { $this_membership = $GLOBALS['egw']->accounts->memberships($GLOBALS['egw_info']['user']['account_id'], true); diff --git a/importexport/js/app.ts b/importexport/js/app.ts index a9f5d42905..598e77d3bc 100644 --- a/importexport/js/app.ts +++ b/importexport/js/app.ts @@ -226,7 +226,7 @@ class ImportExportApp extends EgwApp open_definition(event, widget) { const mgr = widget.getArrayMgr("content"); - const data = mgr.getEntry(mgr.perspectiveData.row) || {}; + const data = mgr.getEntry("" + mgr.perspectiveData.row) || {}; const type = data.type || ""; const application = data.application || ""; const definition_id = data.definition_id || "";