mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-26 23:34:10 +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);
|
$enum = $db->fetchPairs($query);
|
||||||
|
|
||||||
|
|
||||||
|
if ($this->getSetting('data_type') === 'array') {
|
||||||
|
$type = 'extensibleSet';
|
||||||
|
$params['sorted'] = true;
|
||||||
|
$params = ['multiOptions' => $enum];
|
||||||
|
} else {
|
||||||
$params = array(
|
$params = array(
|
||||||
'multiOptions' => array(
|
'multiOptions' => array(
|
||||||
null => $form->translate('- please choose -'),
|
null => $form->translate('- please choose -'),
|
||||||
) + $enum,
|
) + $enum,
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($this->getSetting('data_type') === 'array') {
|
|
||||||
$type = 'extensibleSet';
|
|
||||||
$params['sorted'] = true;
|
|
||||||
} else {
|
|
||||||
$type = 'select';
|
$type = 'select';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user