mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
IcingaObject: fix 'empty' check for relation property
This commit is contained in:
parent
aee62754ce
commit
b3a44bd7dd
@ -290,7 +290,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($this->hasRelation($key)) {
|
if ($this->hasRelation($key)) {
|
||||||
if (! $value) {
|
if (strlen($value) === 0) {
|
||||||
return parent::set($key . '_id', null);
|
return parent::set($key . '_id', null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user