client side collision ext and recurring events problem

Hello,
I have some problem with above extensions works together - mainly in this scenerio:

  1. Create recurring event for example 5 days (daily, 5 occurrences)
  2. Delete for example third occurrence
  3. Create regular event in free slot
  4. Edit recurring event in series mode - click save
  5. Only first occurrence stays, other dissapear

Logically if collision has occurred the event should not be changed (or back to previous state) and nth should happen

When creating new recurring event that collide with others after clicking save you have lightbox showed and event wouldn’t be created - it works great. Problem occurs when you try to edit event.

Regards,
Grzesiek

Can I do sth to get it work in such way?

Hello,
I couldn’t reproduce 5th step, lightbox does not closes when i click save. That is expected since modifying series resets all changed and deleted occurences, and serie collides with single event that has been placed instead of deleted occurence
Can you send a ziped example?

Aliaksandr,

I’m attaching the recurring event example from samples with empty sqlitedb and one recurring event created from today.
File 01_recurring_events.html has also included collision ext.
I use files from archive you attached into my colission bug post (viewtopic.php?f=6&t=32457&start=0)

Mentioned behavior occurs in FF, Chrome and IE. Please fallow the steps from previous message. I’ve attached the sample files as to be sure that my own code doesn’t brake anything. In my projects I use:

[code] scheduler.attachEvent(“onEventCollision”,function(F,E){
for (var i=0; i<E.length; i++) {
is_subevent = (F.id.toString().indexOf(“#”) != -1 && F.id.toString().split(‘#’)[0] == E[i].event_pid);

	    	       if((E[i].res_id == F.res_id || E[i].user_id == F.user_id) && !is_subevent && E[i].id != F.id) {
	    	    	   dhtmlx.alert({
						    title:"Notice",
						    text:"Too many apointments already scheduled for this time period or time collision occured."
						});
		    	      return true;
	    	       }
	    	    }

	    	    return false;
	    	}); [/code]

But event in sample code without any custom code situation appears.

Regards,
Grzesiek
test.rar (564 KB)