Fix circular reference in getDirection()

Was preventing the field-specific switch branch from being reached.
This commit is contained in:
Abe Jellinek 2024-08-14 11:06:09 -06:00
parent 4f1e44978e
commit 64238d56bc

View file

@ -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) {