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 (! $value) {
|
||||
if (strlen($value) === 0) {
|
||||
return parent::set($key . '_id', null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue