mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Fix missing conflict dialog if you drag a full day non-blocking event to a time changing it to full day blocking, and there's a conflict with en existing event that day.
This commit is contained in:
parent
948bf94f67
commit
83390eca97
@ -2653,6 +2653,10 @@ class calendar_uiforms extends calendar_ui
|
||||
{
|
||||
$event['whole_day'] = ($duration == DAY_s);
|
||||
$event['non_blocking'] = false;
|
||||
// If there's a conflict, it won't save the change and the conflict popup will be blank
|
||||
// so save the change now, and then let the conflict check happen.
|
||||
$this->bo->update($event,true, true, false, true, $message,true);
|
||||
|
||||
// Whole day non blocking with DAY_s would add a day
|
||||
if($duration==DAY_s) $duration=0;
|
||||
}
|
||||
|
@ -144,6 +144,8 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM],
|
||||
old_daywise.splice(old_daywise.indexOf(this.options.value.id),1);
|
||||
egw.dataStoreUID(old_cache_id,old_daywise);
|
||||
egw.dataStoreUID(new_cache_id,new_daywise);
|
||||
|
||||
this._parent.removeChild(this);
|
||||
}
|
||||
|
||||
// Copy to avoid changes, which may cause nm problems
|
||||
|
Loading…
Reference in New Issue
Block a user