Fix n_fn update issue

This commit is contained in:
Jörg Lehrke 2010-03-05 08:28:25 +00:00
parent 3eb38935bb
commit d397dcded2

View File

@ -1227,6 +1227,12 @@ class addressbook_ui extends addressbook_bo
{
$old_org_entry = $this->read($content['id']);
}
if (isset($content['n_family']) && isset($content['n_given'])
&& $content['n_family'] != $old_org_entry['n_family']
&& $content['n_given'] != $old_org_entry['n_given'])
{
unset($content['n_fn']);
}
if ($this->save($content))
{
$content['msg'] = lang('Contact saved');