From 64238d56bc59a0bbe2ce8384cf389ceffbebdfdd Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Wed, 14 Aug 2024 11:06:09 -0600 Subject: [PATCH] Fix circular reference in getDirection() Was preventing the field-specific switch branch from being reached. --- chrome/content/zotero/xpcom/data/itemFields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/itemFields.js b/chrome/content/zotero/xpcom/data/itemFields.js index 009c5438ac..450ad84b44 100644 --- a/chrome/content/zotero/xpcom/data/itemFields.js +++ b/chrome/content/zotero/xpcom/data/itemFields.js @@ -432,7 +432,7 @@ Zotero.ItemFields = new function() { return Zotero.dir; } - var fieldName = this.getName(fieldName); + var fieldName = this.getName(field); if (fieldName) { let baseField = this.getBaseIDFromTypeAndField(itemTypeID, fieldName); if (baseField) {