diff --git a/importexport/inc/class.importexport_export_ui.inc.php b/importexport/inc/class.importexport_export_ui.inc.php index 07bc1045f6..0b77df0a69 100644 --- a/importexport/inc/class.importexport_export_ui.inc.php +++ b/importexport/inc/class.importexport_export_ui.inc.php @@ -233,13 +233,6 @@ class importexport_export_ui { "); } - // Disable / hide definition filter if not selected - if($content['selection'] !== 'filter') - { - $this->js->set_onload(" - \$j('div.filters').hide(); - "); - } $preserv['old_definition'] = $content['definition']; // If not set by plugin, pre-set selection to preference, or 'search' @@ -254,6 +247,14 @@ class importexport_export_ui { { $content['selection'] = 'search'; } + + // Disable / hide definition filter if not selected + if($content['selection'] != 'filter') + { + $this->js->set_onload(" + \$j('div.filters').hide(); + "); + } unset ($plugin_object); $apps = importexport_helper_functions::get_apps('export'); //error_log(__METHOD__.__LINE__.array2string($apps));