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) {
|
this.getByObject = function (objectType, object) {
|
||||||
var objectsClass = Zotero.DataObjectUtilities.getObjectsClassForObjectType(objectType);
|
var objectsClass = Zotero.DataObjectUtilities.getObjectsClassForObjectType(objectType);
|
||||||
var predicateIDs = [];
|
var predicateIDs = [];
|
||||||
var o = _subjectPredicatesByObject[objectType][object];
|
var o = _subjectPredicatesByObject[objectType]
|
||||||
|
? _subjectPredicatesByObject[objectType][object] : false;
|
||||||
if (!o) {
|
if (!o) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,12 @@
|
||||||
describe("Duplicate Items", function () {
|
describe("Duplicate Items", function () {
|
||||||
var win, zp, cv;
|
var win, zp, cv;
|
||||||
|
|
||||||
|
before(function* () {
|
||||||
|
yield resetDB({
|
||||||
|
thisArg: this,
|
||||||
|
skipBundledFiles: true
|
||||||
|
});
|
||||||
|
});
|
||||||
beforeEach(function* () {
|
beforeEach(function* () {
|
||||||
Zotero.Prefs.clear('duplicateLibraries');
|
Zotero.Prefs.clear('duplicateLibraries');
|
||||||
win = yield loadZoteroPane();
|
win = yield loadZoteroPane();
|
||||||
|
|
Loading…
Add table
Reference in a new issue