mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Reset status of participants when copying an event
This commit is contained in:
parent
29b315d686
commit
f081a1ba2b
@ -428,6 +428,16 @@ class calendar_uiforms extends calendar_ui
|
||||
unset($event['modified']);
|
||||
unset($event['modifier']);
|
||||
$event['owner'] = !(int)$this->owner || !$this->bo->check_perms(EGW_ACL_ADD,0,$this->owner) ? $this->user : $this->owner;
|
||||
|
||||
// Clear participant stati
|
||||
foreach($event['participant_types'] as $type => &$participants) {
|
||||
foreach($participants as $id => &$response)
|
||||
{
|
||||
if($type == 'u' && $id == $event['owner']) continue;
|
||||
calendar_so::split_status($status, $quantity, $role);
|
||||
$response = calendar_so::combine_status('U',$quantity,$role);
|
||||
}
|
||||
}
|
||||
$preserv['view'] = $preserv['edit_single'] = false;
|
||||
$msg = lang('Event copied - the copy can now be edited');
|
||||
$event['title'] = lang('Copy of:').' '.$event['title'];
|
||||
|
Loading…
Reference in New Issue
Block a user