fixed missing owner

This commit is contained in:
Ralf Becker 2012-02-20 11:25:41 +00:00
parent baf8999392
commit b0d47bd7d5

View File

@ -572,7 +572,8 @@ class addressbook_groupdav extends groupdav_handler
function save_group(array &$contact, $oldContact=null) function save_group(array &$contact, $oldContact=null)
{ {
$data = array('list_name' => $contact['n_fn']); $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]; if ($name != self::$path_attr) $data['list_'.$name] = $contact[$name];
} }