mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-23 13:54:27 +02:00
DataTypeDirectorObject: no optional enum for multi
...selections / extensible sets fixes #1011
This commit is contained in:
parent
66ccf6d4a3
commit
a1469f46be
@ -28,16 +28,17 @@ class DataTypeDirectorObject extends DataTypeHook
|
||||
|
||||
$enum = $db->fetchPairs($query);
|
||||
|
||||
$params = array(
|
||||
'multiOptions' => array(
|
||||
null => $form->translate('- please choose -'),
|
||||
) + $enum,
|
||||
);
|
||||
|
||||
if ($this->getSetting('data_type') === 'array') {
|
||||
$type = 'extensibleSet';
|
||||
$params['sorted'] = true;
|
||||
$params = ['multiOptions' => $enum];
|
||||
} else {
|
||||
$params = array(
|
||||
'multiOptions' => array(
|
||||
null => $form->translate('- please choose -'),
|
||||
) + $enum,
|
||||
);
|
||||
$type = 'select';
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user