mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 00:04:05 +02:00
parent
0139506494
commit
90b31fc6ca
@ -184,7 +184,10 @@ class BasketSnapshot extends DbObject
|
||||
$snapshot = static::create([
|
||||
'basket_uuid' => $basket->get('uuid')
|
||||
]);
|
||||
$snapshot->objects = (array) Json::decode($string);
|
||||
$snapshot->objects = [];
|
||||
foreach ((array) Json::decode($string) as $type => $objects) {
|
||||
$snapshot->objects[$type] = (array) $objects;
|
||||
}
|
||||
|
||||
return $snapshot;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user