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:
parent
6eb354bf36
commit
840790926b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue