From 535146877c08eccaf5a480982059b01edd33ed4c Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 19 Sep 2017 13:24:44 -0600 Subject: [PATCH] * Import/Export - Automatically remove import conditions from definition if there is no field selected --- importexport/inc/class.importexport_definition.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/importexport/inc/class.importexport_definition.inc.php b/importexport/inc/class.importexport_definition.inc.php index 37f4b75310..5f61efbfe5 100644 --- a/importexport/inc/class.importexport_definition.inc.php +++ b/importexport/inc/class.importexport_definition.inc.php @@ -179,6 +179,13 @@ class importexport_definition implements importexport_iface_egw_record { * @param array $options */ private function set_options(array $_plugin_options) { + // Check conditions + foreach ( $_plugin_options['conditions'] as $key => $condition ) { + if(!$condition['string']) + { + unset($_plugin_options['conditions'][$key]); + } + } $this->definition['plugin_options'] = $_plugin_options; }