mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fix for bug [ 1164773 ] Moving events in calendar:
recur_exception was never set
This commit is contained in:
parent
f8b10f7097
commit
00986df3bc
@ -1098,6 +1098,14 @@
|
||||
$this->send_update(MSG_ADDED,$event['participants'],'',$this->get_cached_event());
|
||||
$GLOBALS['phpgw']->contenthistory->updateTimeStamp('calendar', $event['id'], 'add', time());
|
||||
print_debug('New Event ID',$event['id']);
|
||||
|
||||
// set a new recur_exception
|
||||
if ($event['reference'] && (int) $l_cal['new_exception'])
|
||||
{
|
||||
$recur_event = $this->read_entry($event['reference']);
|
||||
$recur_event['recur_exception'][] = (int) $l_cal['new_exception'];
|
||||
$this->so->add_entry($recur_event);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1123,7 +1131,6 @@
|
||||
$this->prepare_recipients($new_event,$old_event);
|
||||
}
|
||||
|
||||
$date = sprintf("%04d%02d%02d",$event['start']['year'],$event['start']['month'],$event['start']['mday']);
|
||||
// check if infolog is availible
|
||||
if(isset($GLOBALS['phpgw_info']['apps']['infolog']) && isset($l_cal['project']))
|
||||
{
|
||||
@ -1219,6 +1226,7 @@
|
||||
'hour' => (int)(date('H',$time)),
|
||||
'min' => (int)(date('i',$time)),
|
||||
'sec' => (int)(date('s',$time)),
|
||||
'raw' => $time,
|
||||
'alarm' => (int)($alarm)
|
||||
);
|
||||
}
|
||||
|
@ -4072,7 +4072,9 @@ return;
|
||||
'common_hidden' => $this->html->input_hidden('cal[id]',$event['id'])
|
||||
. $this->html->input_hidden('cal[owner]',$event['owner'])
|
||||
. $this->html->input_hidden('cal[uid]',$event['uid'])
|
||||
. ($_GET['cal_id'] && $event['id'] == 0?$this->html->input_hidden('cal[reference]',$_GET['cal_id']) :
|
||||
. ($_GET['cal_id'] && $event['id'] == 0?$this->html->input_hidden(array(
|
||||
'cal[reference]' => $_GET['cal_id'],
|
||||
'cal[new_exception]' => $event['start']['raw'])) :
|
||||
(@isset($event['reference'])?$this->html->input_hidden('cal[reference]',$event['reference']):''))
|
||||
. (@isset($GLOBALS['phpgw_info']['server']['deny_user_grants_access']) && $GLOBALS['phpgw_info']['server']['deny_user_grants_access']?
|
||||
$this->html->input_hidden('participants[]',$this->bo->owner):''),
|
||||
|
Loading…
Reference in New Issue
Block a user