mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
IcingaObjectTables: remove filters, fix object_type
This commit is contained in:
parent
7fe6eb2528
commit
f6490f8926
@ -13,10 +13,11 @@ class IcingaEndpointTable extends IcingaObjectTable
|
|||||||
public function getColumns()
|
public function getColumns()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
'id' => 'e.id',
|
'id' => 'e.id',
|
||||||
'endpoint' => 'e.object_name',
|
'endpoint' => 'e.object_name',
|
||||||
'host' => "(CASE WHEN e.host IS NULL THEN NULL ELSE CONCAT(e.host || ':' || COALESCE(e.port, 5665)) END)",
|
'object_type' => 'e.object_type',
|
||||||
'zone' => 'z.object_name',
|
'host' => "(CASE WHEN e.host IS NULL THEN NULL ELSE CONCAT(e.host || ':' || COALESCE(e.port, 5665)) END)",
|
||||||
|
'zone' => 'z.object_name',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -76,6 +76,6 @@ class IcingaHostTable extends IcingaObjectTable
|
|||||||
|
|
||||||
public function getBaseQuery()
|
public function getBaseQuery()
|
||||||
{
|
{
|
||||||
return $this->getUnfilteredQuery()->where('h.object_type = ?', 'object');
|
return $this->getUnfilteredQuery();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,6 @@ class IcingaServiceTable extends IcingaObjectTable
|
|||||||
|
|
||||||
public function getBaseQuery()
|
public function getBaseQuery()
|
||||||
{
|
{
|
||||||
return $this->getUnfilteredQuery()->where('s.object_type = ?', 'object');
|
return $this->getUnfilteredQuery();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,6 +56,6 @@ class IcingaUserTable extends IcingaObjectTable
|
|||||||
|
|
||||||
public function getBaseQuery()
|
public function getBaseQuery()
|
||||||
{
|
{
|
||||||
return $this->getUnfilteredQuery()->where('u.object_type = ?', 'object');
|
return $this->getUnfilteredQuery();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user