forked from extern/egroupware
Import/Export - fix fatal error if definition is not selected, happened when only one definition was available.
This commit is contained in:
parent
9c30d6dd30
commit
7abf1bf5c8
@ -99,6 +99,7 @@ class importexport_export_ui {
|
||||
}
|
||||
if(count($sel_options['definition']) == 2 && !$content['definition']) {
|
||||
$content['definition'] = end($sel_options['definition']);
|
||||
unset($sel_options['definition']['']);
|
||||
}
|
||||
unset($definitions);
|
||||
//$sel_options['definition']['expert'] = lang('Expert options');
|
||||
|
@ -127,7 +127,10 @@ class importexport_widget_filter extends Etemplate\Widget\Transformer
|
||||
}
|
||||
|
||||
// We don't want the 'All' or 'Select...' if it's there
|
||||
unset($field['values']['']);
|
||||
if(is_array($field['values']) && $field['values'][''])
|
||||
{
|
||||
unset($field['values']['']);
|
||||
}
|
||||
$this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'empty_label', '');
|
||||
$this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'tags', TRUE);
|
||||
$this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'multiple', TRUE);
|
||||
|
Loading…
Reference in New Issue
Block a user