From 117ca80a70c8369f6431b8f0ba3eb4413bdca4bc Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 23 Jan 2013 19:44:15 +0000 Subject: [PATCH] Fix hidden filters when preference is for filter --- .../inc/class.importexport_export_ui.inc.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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));