diff --git a/Zotero/Controllers/Database/Requests/CreateHtmlEpubAnnotationsDbRequest.swift b/Zotero/Controllers/Database/Requests/CreateHtmlEpubAnnotationsDbRequest.swift index 3c1ff629f..cdb8cdafe 100644 --- a/Zotero/Controllers/Database/Requests/CreateHtmlEpubAnnotationsDbRequest.swift +++ b/Zotero/Controllers/Database/Requests/CreateHtmlEpubAnnotationsDbRequest.swift @@ -62,9 +62,9 @@ struct CreateHtmlEpubAnnotationsDbRequest: DbRequest { item.createdBy = database.object(ofType: RUser.self, forPrimaryKey: userId) } - // We need to submit tags on creation even if they are empty, so we need to mark them as changed addFields(for: annotation, to: item, database: database) addTags(for: annotation, to: item, database: database) + // We need to submit tags on creation even if they are empty, so we need to mark them as changed let changes: RItemChanges = [.parent, .fields, .type, .tags] item.changes.append(RObjectChange.create(changes: changes)) }