Complement fix for commit r46319, cover copied entries, or genrally entried with no id cases

This commit is contained in:
Hadi Nategh 2014-03-19 09:53:19 +00:00
parent f3512f46fd
commit 227280d03c

View File

@ -939,7 +939,8 @@ app.classes.calendar = AppJS.extend(
var whole_day = this.et2.getWidgetById('whole_day').get_value();
var button = _button;
var that = this;
if (typeof content != 'undefined' && typeof content.recur_type != 'undefined' && content.recur_type != null)
if (typeof content != 'undefined' && typeof content.recur_type != 'undefined'
&& content.recur_type != null && content.id != null)
{
if (content.start != start_date || content.whole_day.toString() != whole_day)
{