mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-12 16:34:26 +02:00
CustomVariables: use ->id, not ->getId
This commit is contained in:
parent
6d9aaf73d9
commit
747ea70a33
@ -103,7 +103,7 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
|
||||
'v.varvalue',
|
||||
'v.format',
|
||||
)
|
||||
)->where(sprintf('v.%s = ?', $object->getVarsIdColumn()), $object->getId());
|
||||
)->where(sprintf('v.%s = ?', $object->getVarsIdColumn()), $object->id);
|
||||
|
||||
$vars = new CustomVariables;
|
||||
foreach ($db->fetchAll($query) as $row) {
|
||||
@ -118,7 +118,7 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
|
||||
$db = $object->getDb();
|
||||
$table = $object->getVarsTableName();
|
||||
$foreignColumn = $object->getVarsIdColumn();
|
||||
$foreignId = $object->getId();
|
||||
$foreignId = $object->id;
|
||||
|
||||
|
||||
foreach ($this->vars as $var) {
|
||||
@ -148,6 +148,8 @@ class CustomVariables implements Iterator, Countable, IcingaConfigRenderer
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$this->setUnmodified();
|
||||
}
|
||||
|
||||
public function get($key)
|
||||
|
Loading…
x
Reference in New Issue
Block a user