unsetting etag too when copying contacts to fix optimistic locking error after 2. apply

This commit is contained in:
Ralf Becker 2009-11-28 11:46:48 +00:00
parent 6c1f963aee
commit 95d4631f61

View File

@ -1399,7 +1399,7 @@ class addressbook_ui extends addressbook_bo
$GLOBALS['egw_info']['user']['account_firstname'],$GLOBALS['egw_info']['user']['account_lastname']), $GLOBALS['egw_info']['user']['account_firstname'],$GLOBALS['egw_info']['user']['account_lastname']),
$content['id'])); $content['id']));
// create a new contact with the content of the old // create a new contact with the content of the old
foreach(array('id','modified','modifier','account_id','uid') as $key) foreach(array('id','modified','modifier','account_id','uid','etag') as $key)
{ {
unset($content[$key]); unset($content[$key]);
} }