Add fetch extrafields in contact's fetch function

This commit is contained in:
phf 2015-05-26 12:40:49 +02:00
parent cb0b0fba7c
commit 087b026f54

View File

@ -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