mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
* Import/Export - Automatically remove import conditions from definition if there is no field selected
This commit is contained in:
parent
7e4570d46f
commit
535146877c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user