From f77791bf6d21d19169851307b813decee2d9264f Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 18 Feb 2001 23:29:12 +0000 Subject: [PATCH] converts groups to individual members --- calendar/edit_entry_handler.php | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/calendar/edit_entry_handler.php b/calendar/edit_entry_handler.php index 4cad6432da..370e46be77 100755 --- a/calendar/edit_entry_handler.php +++ b/calendar/edit_entry_handler.php @@ -84,6 +84,37 @@ } $cal_info->owner=$owner; + + $parts = $cal_info->participants; + $part = Array(); + for($i=0;$iaccounts->get_type(intval($parts[$i])); + if($acct_type == 'u') + { + $part[$parts[$i]] = 1; + } + elseif($acct_type == 'g') + { + $acct = CreateObject('phpgwapi.accounts',intval($parts[$i])); + $members = $acct->members(intval($parts[$i])); + unset($acct); + if($members == False) + { + continue; + } + while($member = each($members)) + { + $part[$member[1]['account_id']] = 1; + } + } + } + + $cal_info->participants = Array(); + while($parts = each($part)) + { + $cal_info->participants[] = $parts[0]; + } if ($phpgw_info['user']['preferences']['common']['timeformat'] == '12') {