diff --git a/calendar/js/et2_widget_event.js b/calendar/js/et2_widget_event.js index e54c37e6fd..da8d747ca6 100644 --- a/calendar/js/et2_widget_event.js +++ b/calendar/js/et2_widget_event.js @@ -701,13 +701,16 @@ var et2_calendar_event = et2_valueWidget.extend([et2_IDetachedDOM], old_daywise.splice(old_daywise.indexOf(this.options.value.id),1); egw.dataStoreUID(old_cache_id,old_daywise); } - if (new_daywise.indexOf(event.id) < 0) + if(new_cache_id != old_cache_id) { - new_daywise.push(event.id); - } - if(new_daywise.data !== null) - { - egw.dataStoreUID(new_cache_id,new_daywise); + if (new_daywise.indexOf(event.id) < 0) + { + new_daywise.push(event.id); + } + if(new_daywise.data !== null) + { + egw.dataStoreUID(new_cache_id,new_daywise); + } } return false;