Fix merging of tags during sync conflict

If an item was added to a tag on one computer and another item was added
to the tag on a different computer, and then they both synced one of the
tags could be removed on the second computer to sync.
This commit is contained in:
Dan Stillman 2013-09-04 17:53:11 -04:00
parent 6eb354bf36
commit 840790926b

View file

@ -535,10 +535,10 @@ Zotero.Tag.prototype.diff = function (tag, includeMatches, ignoreOnlyDateModifie
// For the moment, just compare linked items and increase numDiffs if any differences
var d1 = Zotero.Utilities.arrayDiff(
otherData.linkedItems, thisData.linkedItems
thisData.linkedItems, otherData.linkedItems
);
var d2 = Zotero.Utilities.arrayDiff(
thisData.linkedItems, otherData.linkedItems
otherData.linkedItems, thisData.linkedItems
);
numDiffs += d1.length + d2.length;