mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 08:14:04 +02:00
DirectorObjectForm: simplify method call
FieldLoader already has the object
This commit is contained in:
parent
e4dbdbe808
commit
3bbf06d6b7
@ -321,7 +321,7 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function setCustomVarValues($object, & $values)
|
protected function setCustomVarValues($values)
|
||||||
{
|
{
|
||||||
if ($this->fieldLoader) {
|
if ($this->fieldLoader) {
|
||||||
$this->fieldLoader->setValues($values, 'var_');
|
$this->fieldLoader->setValues($values, 'var_');
|
||||||
@ -645,7 +645,7 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
$values = $this->getValues();
|
$values = $this->getValues();
|
||||||
|
|
||||||
if ($object instanceof IcingaObject) {
|
if ($object instanceof IcingaObject) {
|
||||||
$this->setCustomVarValues($object, $post);
|
$this->setCustomVarValues($post);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->handleProperties($object, $values);
|
$this->handleProperties($object, $values);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user