Fix export fails with "File not found"

This commit is contained in:
nathan 2023-08-31 15:54:03 -06:00
parent 8e7c09c905
commit 2f32b0fc4c
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)
{
if (substr($val = lang($val),-1) != '*')
if(!is_array($val) && substr($val = lang($val), -1) != '*')
{
$field['values'][$key] = $val;
}

View File

@ -17,7 +17,7 @@
</row>
<row class="select_definition">
<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 class="select_plugin">
<et2-description value="Select plugin"></et2-description>