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
64a12f1ddd
commit
ecea3d7e00
@ -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
|
||||
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