show/activitylog: fix rendering for applied objects
This commit is contained in:
parent
419800052d
commit
684793ca6c
|
@ -214,6 +214,10 @@ class ShowController extends ActionController
|
|||
protected function createObject($type, $props)
|
||||
{
|
||||
$props = json_decode($props);
|
||||
return IcingaObject::createByType($type, array(
|
||||
'object_name' => $props->object_name,
|
||||
'object_type' => $props->object_type,
|
||||
), $this->db())->setProperties((array) $props);
|
||||
return IcingaObject::createByType($type, (array) $props, $this->db());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue