mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-25 18:59:05 +02:00
Import: pass through integer and float types
This commit is contained in:
parent
102925ee84
commit
dee5c422f2
@ -195,7 +195,7 @@ class Import
|
|||||||
*/
|
*/
|
||||||
protected function prepareImportedProperty($key, $rawValue)
|
protected function prepareImportedProperty($key, $rawValue)
|
||||||
{
|
{
|
||||||
if (is_array($rawValue) || is_bool($rawValue)) {
|
if (is_array($rawValue) || is_bool($rawValue) || is_int($rawValue) || is_float($rawValue)) {
|
||||||
$value = json_encode($rawValue);
|
$value = json_encode($rawValue);
|
||||||
$format = 'json';
|
$format = 'json';
|
||||||
} elseif ($rawValue instanceof stdClass) {
|
} elseif ($rawValue instanceof stdClass) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user