fixing an n_fn issue, (n_fn was not updated anymore)

This commit is contained in:
Klaus Leithoff 2009-07-20 07:47:55 +00:00
parent ba346ab68b
commit 21d2db0e54

View File

@ -617,7 +617,7 @@ class addressbook_bo extends addressbook_so
$contact['modifier'] = $this->user;
$contact['modified'] = $this->now_su;
// set full name and fileas from the content
if (!isset($contact['n_fn'])) {
if (!isset($contact['n_fn']) || $contact['n_fn'] != $this->fullname($contact)) {
$contact['n_fn'] = $this->fullname($contact);
if (isset($contact['org_name'])) $contact['n_fileas'] = $this->fileas($contact);
}