mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:07 +01:00
* Import/Export - Automatically remove import conditions from definition if there is no field selected
This commit is contained in:
parent
db562cbd7e
commit
165dec8334
@ -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