mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
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']) {
|
if(count($sel_options['definition']) == 2 && !$content['definition']) {
|
||||||
$content['definition'] = end($sel_options['definition']);
|
$content['definition'] = end($sel_options['definition']);
|
||||||
|
unset($sel_options['definition']['']);
|
||||||
}
|
}
|
||||||
unset($definitions);
|
unset($definitions);
|
||||||
//$sel_options['definition']['expert'] = lang('Expert options');
|
//$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
|
// 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.']', 'empty_label', '');
|
||||||
$this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'tags', TRUE);
|
$this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'tags', TRUE);
|
||||||
$this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'multiple', TRUE);
|
$this->setElementAttribute($form_name.'['.self::$prefix.$lname.']', 'multiple', TRUE);
|
||||||
|
Loading…
Reference in New Issue
Block a user