Issue 700: Disable multiple events overlapping same time
Status:  Duplicate
Merged:  issue 396
Owner: ----
Closed:  Nov 2010
Reported by maximsch...@gmail.com, Nov 3, 2010
Dear sir,

First of all, I want to thank you for your wonderful code and that you keep it opensource. This was just what I was looking for but I miss 1 small thing. 

Could it be possible to make sure that people can not create events that overlap?

Thank you 

Maxim

(ps: When I get it fully implemented in my project I will certainly make a donation)
Nov 14, 2010
#1 maximsch...@gmail.com
For now, every time an event is changed I check my mysql database where the events are stored with the following query's:

$query_start = "SELECT * FROM $aircraft WHERE (start BETWEEN '$new_start' and '$new_end' OR '$new_start' BETWEEN start and end) AND start != '$new_end' AND end != '$new_start' AND id != '$id'";
$query_end = "SELECT * FROM $aircraft WHERE (end BETWEEN '$new_start' and '$new_end' OR '$new_end' BETWEEN start and end) AND end != '$new_start' AND start != '$new_end' AND id != '$id'";

If this returns a string, the change is reverted.
Nov 21, 2010
Project Member #2 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Duplicate
Mergedinto: 396