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
1 changed files with 2 additions and 2 deletions

View File

@ -321,7 +321,7 @@ abstract class DirectorObjectForm extends QuickForm
return $this;
}
protected function setCustomVarValues($object, & $values)
protected function setCustomVarValues($values)
{
if ($this->fieldLoader) {
$this->fieldLoader->setValues($values, 'var_');
@ -645,7 +645,7 @@ abstract class DirectorObjectForm extends QuickForm
$values = $this->getValues();
if ($object instanceof IcingaObject) {
$this->setCustomVarValues($object, $post);
$this->setCustomVarValues($post);
}
$this->handleProperties($object, $values);