mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
Db: Fix the where clause for the object_type
This commit is contained in:
parent
1f27c6cfbe
commit
bea63149c6
@ -69,7 +69,7 @@ class Db extends DbConnection
|
||||
$select = $this->db()->select()->from('icinga_zone', array(
|
||||
'id',
|
||||
'object_name',
|
||||
))->where('object_type', 'object')->order('object_name ASC');
|
||||
))->where('object_type = ?', 'object')->order('object_name ASC');
|
||||
|
||||
self::$zoneCache = $this->db()->fetchPairs($select);
|
||||
}
|
||||
@ -94,7 +94,7 @@ class Db extends DbConnection
|
||||
$select = $this->db()->select()->from('icinga_host', array(
|
||||
'id',
|
||||
'object_name',
|
||||
))->where('object_type', 'object')->order('object_name ASC');
|
||||
))->where('object_type = ?', 'object')->order('object_name ASC');
|
||||
return $this->db()->fetchPairs($select);
|
||||
}
|
||||
|
||||
@ -103,7 +103,7 @@ class Db extends DbConnection
|
||||
$select = $this->db()->select()->from('icinga_hostgroup', array(
|
||||
'id',
|
||||
'object_name',
|
||||
))->where('object_type', 'object')->order('object_name ASC');
|
||||
))->where('object_type = ?', 'object')->order('object_name ASC');
|
||||
return $this->db()->fetchPairs($select);
|
||||
}
|
||||
|
||||
@ -112,7 +112,7 @@ class Db extends DbConnection
|
||||
$select = $this->db()->select()->from('icinga_service', array(
|
||||
'id',
|
||||
'object_name',
|
||||
))->where('object_type', 'object')->order('object_name ASC');
|
||||
))->where('object_type = ?', 'object')->order('object_name ASC');
|
||||
return $this->db()->fetchPairs($select);
|
||||
}
|
||||
|
||||
@ -121,7 +121,7 @@ class Db extends DbConnection
|
||||
$select = $this->db()->select()->from('icinga_servicegroup', array(
|
||||
'id',
|
||||
'object_name',
|
||||
))->where('object_type', 'object')->order('object_name ASC');
|
||||
))->where('object_type = ?', 'object')->order('object_name ASC');
|
||||
return $this->db()->fetchPairs($select);
|
||||
}
|
||||
|
||||
@ -130,7 +130,7 @@ class Db extends DbConnection
|
||||
$select = $this->db()->select()->from('icinga_user', array(
|
||||
'id',
|
||||
'object_name',
|
||||
))->where('object_type', 'object')->order('object_name ASC');
|
||||
))->where('object_type = ?', 'object')->order('object_name ASC');
|
||||
return $this->db()->fetchPairs($select);
|
||||
}
|
||||
|
||||
@ -139,7 +139,7 @@ class Db extends DbConnection
|
||||
$select = $this->db()->select()->from('icinga_usergroup', array(
|
||||
'id',
|
||||
'object_name',
|
||||
))->where('object_type', 'object')->order('object_name ASC');
|
||||
))->where('object_type = ?', 'object')->order('object_name ASC');
|
||||
return $this->db()->fetchPairs($select);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user