Skip to content

Commit

Permalink
Tentative status does not get saved #2 : fixed task were not shown
Browse files Browse the repository at this point in the history
  • Loading branch information
bavincen committed Oct 16, 2014
1 parent cb26821 commit c901ec5
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions interfaces/exchangeCalendar/mivExchangeCalendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -7155,10 +7155,18 @@ dump("\n== removed ==:"+aCalendarEvent.toString()+"\n");
this.itemsFromExchange++;

var item = this.convertExchangeToCal(aItems[index], erGetItemsRequest, doNotify, fromOfflineCache);
var aItem = item.QueryInterface(Ci.mivExchangeEvent);
var aItem;
if ( isEvent(item) )
{
aItem=item.QueryInterface(Ci.mivExchangeEvent);
}
else
{
aItem=null;
}
if (item) {
var isOldCacheItem=true;
if ( item.isCancelled && item.reminderIsSet )
if ( item.isCancelled && item.reminderIsSet && isEvent(item) )
{
var aNewItem = item.QueryInterface(Ci.mivExchangeEvent);

Expand All @@ -7181,7 +7189,10 @@ dump("\n== removed ==:"+aCalendarEvent.toString()+"\n");
isOldCacheItem=false;

if (this.debug) this.logInfo("updateCalendar2: setTentative:"+ item.title);
this.setTentative(aItem,aItems[index],isOldCacheItem);
if ( isEvent(aItem) )
{
this.setTentative(aItem,aItems[index],isOldCacheItem);
}
if (this.debug) this.logInfo("updateCalendar2: onAddItem:"+ item.title);
if (doNotify) {
this.notifyTheObservers("onAddItem", [item]);
Expand Down

0 comments on commit c901ec5

Please sign in to comment.