From 9cc8991c273bebde879008e9c809234d03a33723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come@opensides.be> Date: Tue, 2 Oct 2018 17:04:11 +0200 Subject: [PATCH] :ambulance: fix(simpleplugin) Fix ObjectLinkAttribute empty value support issue #5896 --- include/simpleplugin/class_Attribute.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/simpleplugin/class_Attribute.inc b/include/simpleplugin/class_Attribute.inc index 77e938a53..213415a46 100644 --- a/include/simpleplugin/class_Attribute.inc +++ b/include/simpleplugin/class_Attribute.inc @@ -909,6 +909,10 @@ class ObjectLinkAttribute extends DisplayLDAPAttribute function renderFormInput () { + if (empty($this->value)) { + return ''; + } + try { return objects::link($this->value, $this->type); } catch (NonExistingLdapNodeException $e) { -- GitLab