forked from extern/egroupware
fix for bug [ 1164773 ] Moving events in calendar:
recur_exception was never set
This commit is contained in:
parent
e00dc3ec4e
commit
b141e0606d
@ -1081,6 +1081,14 @@
|
|||||||
$this->so->add_entry($event);
|
$this->so->add_entry($event);
|
||||||
$this->send_update(MSG_ADDED,$event['participants'],'',$this->get_cached_event());
|
$this->send_update(MSG_ADDED,$event['participants'],'',$this->get_cached_event());
|
||||||
print_debug('New Event ID',$event['id']);
|
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
|
else
|
||||||
{
|
{
|
||||||
@ -1105,7 +1113,6 @@
|
|||||||
$this->prepare_recipients($new_event,$old_event);
|
$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
|
// check if infolog is availible
|
||||||
if(isset($GLOBALS['phpgw_info']['apps']['infolog']) && isset($l_cal['project']))
|
if(isset($GLOBALS['phpgw_info']['apps']['infolog']) && isset($l_cal['project']))
|
||||||
{
|
{
|
||||||
@ -1201,6 +1208,7 @@
|
|||||||
'hour' => (int)(date('H',$time)),
|
'hour' => (int)(date('H',$time)),
|
||||||
'min' => (int)(date('i',$time)),
|
'min' => (int)(date('i',$time)),
|
||||||
'sec' => (int)(date('s',$time)),
|
'sec' => (int)(date('s',$time)),
|
||||||
|
'raw' => $time,
|
||||||
'alarm' => (int)($alarm)
|
'alarm' => (int)($alarm)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -3976,7 +3976,9 @@
|
|||||||
'common_hidden' => $this->html->input_hidden('cal[id]',$event['id'])
|
'common_hidden' => $this->html->input_hidden('cal[id]',$event['id'])
|
||||||
. $this->html->input_hidden('cal[owner]',$event['owner'])
|
. $this->html->input_hidden('cal[owner]',$event['owner'])
|
||||||
. $this->html->input_hidden('cal[uid]',$event['uid'])
|
. $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($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']?
|
. (@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):''),
|
$this->html->input_hidden('participants[]',$this->bo->owner):''),
|
||||||
|
Loading…
Reference in New Issue
Block a user