mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
ExtensibleSet: Migrate also integers to an array
This commit is contained in:
parent
8f871f4afa
commit
e101416b5d
@ -20,7 +20,7 @@ class ExtensibleSet extends FormElement
|
||||
public function getValue()
|
||||
{
|
||||
$value = parent::getValue();
|
||||
if (is_string($value)) {
|
||||
if (is_string($value) || is_numeric($value)) {
|
||||
$value = [$value];
|
||||
} elseif ($value === null) {
|
||||
return $value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user