fix javascript error when creating an exception

This commit is contained in:
Ralf Becker 2014-10-30 10:24:11 +00:00
parent f5c477174a
commit a4389c7cbc

View File

@ -101,7 +101,8 @@ app.classes.calendar = AppJS.extend(
{
this.set_enddate_visibility();
this.check_recur_type();
this.et2.getWidgetById('recur_exception').set_disabled(typeof content.data['recur_exception'][0] == 'undefined');
this.et2.getWidgetById('recur_exception').set_disabled(!content.data.recur_exception ||
typeof content.data.recur_exception[0] == 'undefined');
}
else
{