Fix export fails with "File not found"

This commit is contained in:
nathan 2023-08-31 15:54:03 -06:00
parent d16d56c55f
commit 957781af5f
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ class importexport_widget_filter extends Etemplate\Widget\Transformer
} }
foreach((array)$field['values'] as $key => $val) 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; $field['values'][$key] = $val;
} }

View File

@ -17,7 +17,7 @@
</row> </row>
<row class="select_definition"> <row class="select_definition">
<et2-description value="Select definition"></et2-description> <et2-description value="Select definition"></et2-description>
<et2-select id="definition" onchange="widget.getInstanceManager().postSubmit(); return false;" noLang="1"></et2-select> <et2-select id="definition" onchange="1" noLang="1"></et2-select>
</row> </row>
<row class="select_plugin"> <row class="select_plugin">
<et2-description value="Select plugin"></et2-description> <et2-description value="Select plugin"></et2-description>