From b0d47bd7d5bfa697168988f034dc60e2266478a6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 20 Feb 2012 11:25:41 +0000 Subject: [PATCH] fixed missing owner --- addressbook/inc/class.addressbook_groupdav.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addressbook/inc/class.addressbook_groupdav.inc.php b/addressbook/inc/class.addressbook_groupdav.inc.php index 8544d09d37..186f776a5c 100644 --- a/addressbook/inc/class.addressbook_groupdav.inc.php +++ b/addressbook/inc/class.addressbook_groupdav.inc.php @@ -572,7 +572,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]; }