forked from extern/egroupware
Fix n_fn update issue
This commit is contained in:
parent
3eb38935bb
commit
d397dcded2
@ -1227,6 +1227,12 @@ class addressbook_ui extends addressbook_bo
|
|||||||
{
|
{
|
||||||
$old_org_entry = $this->read($content['id']);
|
$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))
|
if ($this->save($content))
|
||||||
{
|
{
|
||||||
$content['msg'] = lang('Contact saved');
|
$content['msg'] = lang('Contact saved');
|
||||||
|
Loading…
Reference in New Issue
Block a user