Commit 9cc8991c authored by Côme Chilliet's avatar Côme Chilliet
Browse files

🚑 fix(simpleplugin) Fix ObjectLinkAttribute empty value support

issue #5896
parent 8467e70d
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment