Fix removing recur end date did not change recurrences

This commit is contained in:
Nathan Gray 2015-11-23 19:23:39 +00:00
parent 2b6eacd472
commit adb64aa0b8

View File

@ -336,6 +336,11 @@ class calendar_uiforms extends calendar_ui
{
$event['recur_data'] = 1 << (int)date('w',$event['start']);
}
if ($event['recur_type'] != MCAL_RECUR_NONE && !isset($event['recur_enddate']))
{
// No recur end date, make sure it's set to something or it won't be changed
$event['recur_enddate'] = 0;
}
if (isset($content['participants']))
{
@ -814,6 +819,10 @@ foreach($recur_event as $_k => $_v) error_log($_k . ': ' . array2string($_v));
$event['alarm'] = array();
}
}
else if ($event['recur_enddate'] != $old_event['recur_enddate'])
{
error_log(__METHOD__ . ':'.__LINE__ . ' ' .$event['recur_enddate'] . (isset($event['recur_enddate']) ? ' SET' : ' NOT SET'));
}
}
else
{