Commit 0e064e86 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch '5896-add-a-generic-objectlinkattribute' into '1.4-dev'

Resolve "Add a generic ObjectLinkAttribute"

See merge request fusiondirectory/fd!415
parents 8467e70d 9cc8991c
No related merge requests found
Showing with 4 additions and 0 deletions
+4 -0
...@@ -909,6 +909,10 @@ class ObjectLinkAttribute extends DisplayLDAPAttribute ...@@ -909,6 +909,10 @@ class ObjectLinkAttribute extends DisplayLDAPAttribute
function renderFormInput () function renderFormInput ()
{ {
if (empty($this->value)) {
return '';
}
try { try {
return objects::link($this->value, $this->type); return objects::link($this->value, $this->type);
} catch (NonExistingLdapNodeException $e) { } 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