IcingaService: make use of fields

This commit is contained in:
Thomas Gelf 2015-07-31 17:34:12 +02:00
parent caa3f97048
commit b265f48a89
2 changed files with 3 additions and 1 deletions

View File

@ -377,7 +377,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
array('f' => $this->getTableName() . '_field'),
'df.id = f.datafield_id',
array()
)->where('f.host_id = ?', (int) $this->id)
)->where('f.' . $this->getShortTableName() . '_id = ?', (int) $this->id)
->order('df.caption ASC');
$res = $db->fetchAll($query);

View File

@ -38,6 +38,8 @@ class IcingaService extends IcingaObject
protected $supportsCustomVars = true;
protected $supportsFields = true;
protected $supportsImports = true;
protected function renderCheck_command_id()