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)
This commit is contained in:
nathan 2023-08-18 09:41:00 -06:00
parent c8d4682672
commit f722619f17
2 changed files with 2 additions and 1 deletions

View File

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

View File

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