Don't copy external annotations to between libraries

This commit is contained in:
Dan Stillman 2022-02-09 07:08:18 -05:00
parent 9156d69110
commit c6d03753fd

View file

@ -896,6 +896,10 @@ Zotero.Items = function() {
if (fromItem.isFileAttachment()) {
let annotations = fromItem.getAnnotations();
for (let annotation of annotations) {
// Don't copy embedded PDF annotations
if (annotation.annotationIsExternal) {
continue;
}
let newAnnotation = annotation.clone(toItem.libraryID);
newAnnotation.parentItemID = toItem.id;
// If there's no explicit author and we're copying from a group, set the author