Skip to content
Snippets Groups Projects
Commit 087b026f authored by Phf's avatar Phf
Browse files

Add fetch extrafields in contact's fetch function

parent cb0b0fba
No related branches found
No related tags found
No related merge requests found
......@@ -628,6 +628,13 @@ class Contact extends CommonObject
}
}
// Retreive all extrafield for contact
// fetch optionals attributes and labels
require_once(DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php');
$extrafields=new ExtraFields($this->db);
$extralabels=$extrafields->fetch_name_optionals_label($this->table_element,true);
$this->fetch_optionals($this->id,$extralabels);
return 1;
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment