mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-09-26 03:09:11 +02:00
DirectorObjectForm: prefer sent over inherited
This commit is contained in:
parent
46b4f7b047
commit
5e2de81767
@ -608,7 +608,7 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$txtInherited = $this->translate(' (inherited from "%s")');
|
$txtInherited = ' ' . $this->translate(' (inherited from "%s")');
|
||||||
if ($el instanceof Zf_Select) {
|
if ($el instanceof Zf_Select) {
|
||||||
$multi = $el->getMultiOptions();
|
$multi = $el->getMultiOptions();
|
||||||
if (is_bool($inherited)) {
|
if (is_bool($inherited)) {
|
||||||
@ -950,9 +950,7 @@ abstract class DirectorObjectForm extends QuickForm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Has Object:
|
if ($this->hasBeenSent()) {
|
||||||
|
|
||||||
if (!$resolved && $this->hasBeenSent()) {
|
|
||||||
if (!$this->valueIsEmpty($value = $this->getSentValue($name))) {
|
if (!$this->valueIsEmpty($value = $this->getSentValue($name))) {
|
||||||
return $value;
|
return $value;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user