From ca30ea2ff842b2557aefc3fd77f18a305f6b6275 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Fri, 21 Nov 2008 08:32:49 +0000 Subject: [PATCH] Register difference between tags if linked items change --- chrome/content/zotero/xpcom/data/tag.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/chrome/content/zotero/xpcom/data/tag.js b/chrome/content/zotero/xpcom/data/tag.js index 6bf4068e02..3ee974cd46 100644 --- a/chrome/content/zotero/xpcom/data/tag.js +++ b/chrome/content/zotero/xpcom/data/tag.js @@ -411,6 +411,11 @@ Zotero.Tag.prototype.diff = function (tag, includeMatches, ignoreOnlyDateModifie var d1 = Zotero.Utilities.prototype.arrayDiff( thisData.linkedItems, otherData.linkedItems ); + var d2 = Zotero.Utilities.prototype.arrayDiff( + otherData.linkedItems, thisData.linkedItems + ); + numDiffs += d1.length; + numDiffs += d2.length; // DEBUG: ignoreOnlyDateModified wouldn't work if includeMatches was set? if (numDiffs == 0 ||