From 822f8217185914a6be1b5e25515a1e48711aaf99 Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Mon, 21 Feb 2022 18:04:41 +0200 Subject: [PATCH] Set the current author name when creating an annotation in a group Fixes #2322 --- chrome/content/zotero/xpcom/reader.js | 1 + pdf-reader | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/reader.js b/chrome/content/zotero/xpcom/reader.js index e0f7bcc254..feca05aca8 100644 --- a/chrome/content/zotero/xpcom/reader.js +++ b/chrome/content/zotero/xpcom/reader.js @@ -77,6 +77,7 @@ class ReaderInstance { state, location, readOnly: this._isReadOnly(), + authorName: item.library.libraryType === 'group' ? Zotero.Users.getCurrentName() : '', showItemPaneToggle: this._showItemPaneToggle, sidebarWidth: this._sidebarWidth, sidebarOpen: this._sidebarOpen, diff --git a/pdf-reader b/pdf-reader index c5b1bc4dfd..13aa2cf7f1 160000 --- a/pdf-reader +++ b/pdf-reader @@ -1 +1 @@ -Subproject commit c5b1bc4dfd88001f0e92ff82dc264f514eb00984 +Subproject commit 13aa2cf7f1e23f631d4dd173207741abd44b6510