Skip to content

Commit

Permalink
Add fetch extrafields in contact's fetch function
Browse files Browse the repository at this point in the history
  • Loading branch information
phf committed May 26, 2015
1 parent cb0b0fb commit 087b026
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions htdocs/contact/class/contact.class.php
Expand Up @@ -628,6 +628,13 @@ function fetch($id, $user=0, $ref_ext='')
}
}

// 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
Expand Down

0 comments on commit 087b026

Please sign in to comment.