diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 9edf092098..f4f6ad311e 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -1860,12 +1860,14 @@ var ZoteroPane = new function() duplicate.setCreators(creators); } + duplicate.setField('abstractNote', ''); + duplicate.addRelatedItem(original); original.addRelatedItem(duplicate); await original.saveTx({ skipDateModifiedUpdate: true }); await duplicate.saveTx(); - + document.getElementById('zotero-editpane-item-box').focusField('title'); return duplicate; }; diff --git a/test/tests/zoteroPaneTest.js b/test/tests/zoteroPaneTest.js index 2a669277ea..c88b8b9a75 100644 --- a/test/tests/zoteroPaneTest.js +++ b/test/tests/zoteroPaneTest.js @@ -467,6 +467,16 @@ describe("ZoteroPane", function() { assert.sameMembers(bookSectionItem2.relatedItems, [bookItem.key, otherBookSection.key]); }); }); + + it("should not copy abstracts", async function() { + await selectLibrary(win); + var bookItem = await createDataObject('item', { itemType: 'book', title: "Book Title" }); + bookItem.setField('abstractNote', 'An abstract'); + bookItem.saveTx(); + + var bookSectionItem = await zp.duplicateAndConvertSelectedItem(); + assert.isEmpty(bookSectionItem.getField('abstractNote')); + }); });