Fix #956, 5.0: Merging of duplicate items is not working
This commit is contained in:
parent
c6444c29de
commit
a91957c588
2 changed files with 8 additions and 1 deletions
|
@ -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 [];
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue