mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 00:34: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();
|
$props = $object->getProperties();
|
||||||
unset($props['vars']);
|
unset($props['vars']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->setDefaults($props);
|
$this->setDefaults($props);
|
||||||
|
|
||||||
if (! $object instanceof IcingaObject) {
|
if (! $object instanceof IcingaObject) {
|
||||||
@ -485,7 +486,9 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
}
|
}
|
||||||
$el->setMultiOptions($multi);
|
$el->setMultiOptions($multi);
|
||||||
} else {
|
} 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