From 768859718f6d455f34888fa104da24e207859b5b Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 9 Jun 2011 14:42:58 +0000 Subject: [PATCH] Update selection tab if definition is changed. --- importexport/inc/class.importexport_export_ui.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/importexport/inc/class.importexport_export_ui.inc.php b/importexport/inc/class.importexport_export_ui.inc.php index 36bca5a639..9ef69c9ec7 100644 --- a/importexport/inc/class.importexport_export_ui.inc.php +++ b/importexport/inc/class.importexport_export_ui.inc.php @@ -164,7 +164,8 @@ class importexport_export_ui { if($definition && $definition->plugin_options['selection']) { $_selection = $definition->plugin_options['selection']; } - if ($_selection) { + + if ($_selection && $content['old_definition'] == $content['definition']) { $readonlys[$tabs]['selection_tab'] = true; $content['selection'] = $_selection; $preserv['selection'] = $_selection; @@ -193,6 +194,7 @@ class importexport_export_ui { disable_button('exec[export]'); "); } + $preserv['old_definition'] = $content['definition']; if (($prefs = $GLOBALS['egw_info']['user']['preferences']['importexport'][$definition->definition_id]) && ($prefs = unserialize($prefs)) && !$content['selection']['plugin_override']) {