fix for not set default addressbook preference on copy

This commit is contained in:
Ralf Becker 2006-10-24 14:23:04 +00:00
parent dae2c126df
commit 7eec77c451

View File

@ -993,7 +993,7 @@ class uicontacts extends bocontacts
$content['id']));
// create a new contact with the content of the old
foreach(array('id','modified','modifier') as $key) unset($content[$key]);
$content['owner'] = $this->prefs['add_default'];
$content['owner'] = $this->prefs['add_default'] ? $this->prefs['add_default'] : $this->user;
$content['creator'] = $this->user;
$content['created'] = $this->now_su;
$content['msg'] = lang('Contact copied');