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:
Nathan Gray 2015-11-12 18:54:20 +00:00
parent 948bf94f67
commit 83390eca97
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}

View File

@ -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