fixed missing owner

This commit is contained in:
Ralf Becker 2012-02-20 11:22:33 +00:00
parent d34c216f52
commit f9a8f55065

View File

@ -573,7 +573,8 @@ class addressbook_groupdav extends groupdav_handler
function save_group(array &$contact, $oldContact=null)
{
$data = array('list_name' => $contact['n_fn']);
foreach(array('id','carddav_name','uid') as $name)
if (!isset($contact['owner'])) $contact['owner'] = $GLOBALS['egw_info']['user']['account_id'];
foreach(array('id','carddav_name','uid','owner') as $name)
{
if ($name != self::$path_attr) $data['list_'.$name] = $contact[$name];
}