mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
DirectorObjectForm: inheritance error for arrays
This commit is contained in:
parent
a94843ef12
commit
fda920d3ad
@ -180,6 +180,7 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
$props = $object->getProperties();
|
||||
unset($props['vars']);
|
||||
}
|
||||
|
||||
$this->setDefaults($props);
|
||||
|
||||
if (! $object instanceof IcingaObject) {
|
||||
@ -485,7 +486,9 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
}
|
||||
$el->setMultiOptions($multi);
|
||||
} else {
|
||||
$el->setAttrib('placeholder', $inherited . sprintf($txtInherited, $inheritedFrom));
|
||||
if (is_string($inherited)) {
|
||||
$el->setAttrib('placeholder', $inherited . sprintf($txtInherited, $inheritedFrom));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user