mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +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();
|
$props = $object->getProperties();
|
||||||
unset($props['vars']);
|
unset($props['vars']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setDefaults($props);
|
$this->setDefaults($props);
|
||||||
|
|
||||||
if (! $object instanceof IcingaObject) {
|
if (! $object instanceof IcingaObject) {
|
||||||
@ -485,9 +486,11 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
}
|
}
|
||||||
$el->setMultiOptions($multi);
|
$el->setMultiOptions($multi);
|
||||||
} else {
|
} else {
|
||||||
|
if (is_string($inherited)) {
|
||||||
$el->setAttrib('placeholder', $inherited . sprintf($txtInherited, $inheritedFrom));
|
$el->setAttrib('placeholder', $inherited . sprintf($txtInherited, $inheritedFrom));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function onSuccess()
|
public function onSuccess()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user