fixed wrong warning "event was edited by other user" after storing an event more then once, was caused always splitting series, but not checking that condition

This commit is contained in:
Ralf Becker 2014-01-30 10:12:08 +00:00
parent e70a7bcf07
commit 6b4bc0547c

View File

@ -776,6 +776,9 @@ class calendar_uiforms extends calendar_ui
$noerror = false;
}
elseif ($conflicts > 0)
{
// series moved by splitting in two --> move alarms and exceptions
if ($old_event && $old_event['id'] != $event['id'])
{
foreach ((array)$old_alarms as $alarm)
{
@ -827,7 +830,7 @@ class calendar_uiforms extends calendar_ui
$this->bo->update($exception, true, true, true, true, $msg=null, $content['no_notifications']);
}
}
}
$message = lang('Event saved');
if ($status_reset_to_unknown)