show/activitylog: fix rendering for applied objects

This commit is contained in:
Thomas Gelf 2016-03-24 13:12:26 +01:00
parent 419800052d
commit 684793ca6c
1 changed files with 4 additions and 0 deletions

View File

@ -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());
}
}