mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-27 15:54:03 +02:00
ObjectController: Use objects table name to search history
This was mainly a problem for IcingaServiceSet and others that may have a capital letter where the table name is split by `_`
This commit is contained in:
parent
cd9d93de3e
commit
db00f1bfc4
@ -234,10 +234,10 @@ abstract class ObjectController extends ActionController
|
||||
$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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user