mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +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()
|
public function getValue()
|
||||||
{
|
{
|
||||||
$value = parent::getValue();
|
$value = parent::getValue();
|
||||||
if (is_string($value)) {
|
if (is_string($value) || is_numeric($value)) {
|
||||||
$value = [$value];
|
$value = [$value];
|
||||||
} elseif ($value === null) {
|
} elseif ($value === null) {
|
||||||
return $value;
|
return $value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user