Error when creating/updating one time events from Recurring

I am currently using the trial version of the software and am testing the functionality to know if it would be a good solution for our requirements:

I downloaded the MVC 3 Scheduler from the web and have been testing it around. When I create a one time event from the recurring events screen in your scheduler.net example and update it. I get the following JS error and the screen does not reload any events.

This is because the value for rec_type for the single day event is being passed as string “null” instead of DBNull and when trying to retrieve the events the following error is being thrown.

Uncaught TypeError: Property ‘transpose_null’ of object # is not a function dhtmlxscheduler_recurring.js:613

this.transpose_type(ev.rec_pattern);
scheduler.date[“transpose_” + ev.rec_pattern](td, from);

Hello,
looks like events are saved incorrectly, and rec_type in db has “null” string as value instead of actual null.
I’ve just checked the Scheduler.MVC3-Recurring events sample from our our trial package, everything seems to work there. I was able to create/load both recurring and single events.
Do you have this problem in your custom project, or it’s one of our samples works incorrectly?

The create for recurring multiday/single day events work properly. It is when we update the single day event, the issue occurs.

The issue happens both in the sample (Scheduler.MVC3) and my custom project.

Steps to reproduce:

Navigate to the Recurring Events section of the sample.

Create a recurring event on the Recurring Events page.

In addition, create a single day event on the same page.

Now, make some modifications to the single day event and update it.

Now refresh the page.

The events would not load and if u debug, u would see the error that I posted.

Thanks
Arun

I’m still can’t reproduce it:(
Do you run the sample in VisualStudio 2010 or 2012?
Could you send a small test project where the issue occurs, please?

I am currently working with Visual Studio 2010.

Use the Scheduler.Net-EVAL\Samples\Scheduler.MVC3 project

Run the project

Go to Recurring Events

Modify the 9/28/2011 6:15 to 9/28/2011 9:25 event by just dragging the event, not by opening the edit screen.

Refresh the page

Hi,
thank you very much for the clarifications!
The bug is confirmed,
as a workaround, you can check rec_type value before scheduler’s dataprocessor send it to the serverdp.attachEvent("onBeforeUpdate", function (id, status, data) { if (data.rec_type === null) data.rec_type = ""; return true; });
dp - DataProcessor object, defined in the global scope

Simply change connector.php to avoid NULL value for rec_type to be passed to XML:

		if ($extra=="rec_type" and $this->data[$extra] == 'null'){
			$this->data[$extra]='';
		}