handling mailing events: dont add groupmembers if they already rejected the event, or are the current user

This commit is contained in:
Klaus Leithoff 2009-03-05 15:52:57 +00:00
parent 6e0d963eb7
commit 29a622e641

View File

@ -668,7 +668,8 @@ class calendar_uiforms extends calendar_ui
$GLOBALS['egw']->accounts->get_account_name($uid,$lid,$firstname,$lastname);
$toadd = $firstname.' '.$lastname.' <'.$email.'>';
if (!in_array($toadd,$to)) $to[] = $toadd;
// dont add groupmembers if they already rejected the event, or are the current user
if (!in_array($toadd,$to) && ($event['participants'][$uid] !== 'R' && $uid != $this->user)) $to[] = $toadd;
}
}
elseif(($info = $this->bo->resource_info($uid)))