* Import/Export - Automatically remove import conditions from definition if there is no field selected

This commit is contained in:
nathangray 2017-09-19 13:24:44 -06:00
parent db562cbd7e
commit 165dec8334

View File

@ -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;
}