Fix #956, 5.0: Merging of duplicate items is not working

This commit is contained in:
Dan Stillman 2016-04-24 02:44:21 -04:00
parent c6444c29de
commit a91957c588
2 changed files with 8 additions and 1 deletions

View file

@ -149,7 +149,8 @@ Zotero.Relations = new function () {
this.getByObject = function (objectType, object) {
var objectsClass = Zotero.DataObjectUtilities.getObjectsClassForObjectType(objectType);
var predicateIDs = [];
var o = _subjectPredicatesByObject[objectType][object];
var o = _subjectPredicatesByObject[objectType]
? _subjectPredicatesByObject[objectType][object] : false;
if (!o) {
return [];
}

View file

@ -3,6 +3,12 @@
describe("Duplicate Items", function () {
var win, zp, cv;
before(function* () {
yield resetDB({
thisArg: this,
skipBundledFiles: true
});
});
beforeEach(function* () {
Zotero.Prefs.clear('duplicateLibraries');
win = yield loadZoteroPane();