diff --git a/chrome/content/zotero/xpcom/storage.js b/chrome/content/zotero/xpcom/storage.js index eb259f84e..ac1940457 100644 --- a/chrome/content/zotero/xpcom/storage.js +++ b/chrome/content/zotero/xpcom/storage.js @@ -864,13 +864,14 @@ Zotero.Sync.Storage = new function () { Zotero.debug("Remote mod time for item " + lk + " is " + itemModTimes[item.id]); // Ignore attachments whose stored mod times haven't changed - if (row.storageModTime == itemModTimes[id]) { + if (row.storageModTime == itemModTimes[item.id]) { Zotero.debug("Storage mod time (" + row.storageModTime + ") " + "hasn't changed for item " + lk); continue; } - Zotero.debug("Marking attachment " + lk + " for download"); + Zotero.debug("Marking attachment " + lk + " for download " + + "(stored mtime: " + itemModTimes[item.id] + ")"); updatedStates[item.id] = Zotero.Sync.Storage.SYNC_STATE_FORCE_DOWNLOAD; }