mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
DirectorObjectForm: hardcode boolean handling
This commit is contained in:
parent
984f28bfdc
commit
baf6d8f62f
@ -611,6 +611,9 @@ abstract class DirectorObjectForm extends QuickForm
|
||||
$txtInherited = $this->translate(' (inherited from "%s")');
|
||||
if ($el instanceof Zf_Select) {
|
||||
$multi = $el->getMultiOptions();
|
||||
if (is_bool($inherited)) {
|
||||
$inherited = $inherited ? 'y' : 'n';
|
||||
}
|
||||
if (array_key_exists($inherited, $multi)) {
|
||||
$multi[null] = $multi[$inherited] . sprintf($txtInherited, $inheritedFrom);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user