diff --git a/library/Director/Web/Controller/ObjectController.php b/library/Director/Web/Controller/ObjectController.php index 780839578..0dbcba347 100644 --- a/library/Director/Web/Controller/ObjectController.php +++ b/library/Director/Web/Controller/ObjectController.php @@ -234,10 +234,10 @@ public function historyAction() $this->addTitle($this->translate('Activity Log: %s'), $name); $db = $this->db(); - $type = $this->getType(); + $objectTable = $this->object->getTableName(); $table = (new ActivityLogTable($db)) ->setLastDeployedId($db->getLastDeploymentActivityLogId()) - ->filterObject('icinga_' . $type, $name); + ->filterObject($objectTable, $name); if ($host = $this->params->get('host')) { $table->filterHost($host); }