From 957781af5f5bd657fd44945021dcf42bd5845d9e Mon Sep 17 00:00:00 2001 From: nathan Date: Thu, 31 Aug 2023 15:54:03 -0600 Subject: [PATCH] Fix export fails with "File not found" --- importexport/inc/class.importexport_widget_filter.inc.php | 2 +- importexport/templates/default/export_dialog.xet | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/importexport/inc/class.importexport_widget_filter.inc.php b/importexport/inc/class.importexport_widget_filter.inc.php index 8b888ed5b7..4299b84d2e 100644 --- a/importexport/inc/class.importexport_widget_filter.inc.php +++ b/importexport/inc/class.importexport_widget_filter.inc.php @@ -123,7 +123,7 @@ class importexport_widget_filter extends Etemplate\Widget\Transformer } foreach((array)$field['values'] as $key => $val) { - if (substr($val = lang($val),-1) != '*') + if(!is_array($val) && substr($val = lang($val), -1) != '*') { $field['values'][$key] = $val; } diff --git a/importexport/templates/default/export_dialog.xet b/importexport/templates/default/export_dialog.xet index 4cb9cf7ded..4c1dcbc769 100644 --- a/importexport/templates/default/export_dialog.xet +++ b/importexport/templates/default/export_dialog.xet @@ -17,7 +17,7 @@ - +