mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-16 18:31:26 +01:00
Handle changing status via ajax for a user in a group invitation
This commit is contained in:
parent
0e3c23c48a
commit
deedf7a808
@ -2787,6 +2787,20 @@ class calendar_uiforms extends calendar_ui
|
|||||||
$event['participants'][$uid] = $status = calendar_so::combine_status($status,$q,$r);
|
$event['participants'][$uid] = $status = calendar_so::combine_status($status,$q,$r);
|
||||||
$this->bo->set_status($event['id'],$uid,$status,$date,true);
|
$this->bo->set_status($event['id'],$uid,$status,$date,true);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// Group membership
|
||||||
|
foreach($event['participants'] as $id => $status)
|
||||||
|
{
|
||||||
|
if($GLOBALS['egw']->accounts->get_type($id) == 'g' && in_array($uid,$GLOBALS['egw']->accounts->members($id,true)))
|
||||||
|
{
|
||||||
|
calendar_so::split_status($event['participants'][$uid],$q,$r);
|
||||||
|
$event['participants'][$uid] = $status = calendar_so::combine_status($status,$q,$r);
|
||||||
|
$this->bo->set_status($event['id'],$uid,$status,$date,true);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Directly update stored data. If event is still visible, it will
|
// Directly update stored data. If event is still visible, it will
|
||||||
// be notified & update itself.
|
// be notified & update itself.
|
||||||
|
Loading…
Reference in New Issue
Block a user