mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +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
|
* @param array $options
|
||||||
*/
|
*/
|
||||||
private function set_options(array $_plugin_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;
|
$this->definition['plugin_options'] = $_plugin_options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user