DirectorObjectForm: simplify method call

FieldLoader already has the object
This commit is contained in:
Thomas Gelf 2017-01-17 12:02:53 +01:00
parent e4dbdbe808
commit 3bbf06d6b7

View File

@ -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);