fix javascript error when creating an exception

This commit is contained in:
Ralf Becker 2014-10-30 10:24:27 +00:00
parent 5fc79b8de7
commit 2cb639dd9c

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
{