Skip to content

Commit

Permalink
ObjectController: Use objects table name to search history
Browse files Browse the repository at this point in the history
This was mainly a problem for IcingaServiceSet and others that may have
a capital letter where the table name is split by `_`
  • Loading branch information
lazyfrosch committed Apr 10, 2019
1 parent cd9d93d commit db00f1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Director/Web/Controller/ObjectController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit db00f1b

Please sign in to comment.