From cc10987deea0411ac92b8f6dc069cba43e8a2281 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 18 Aug 2024 01:46:10 -0400 Subject: [PATCH] Fix error loading trash containing collection if bidi.browser.ui == true https://forums.zotero.org/discussion/116980/zotero-7-0-1-center-right-panes-stop-displaying-items --- chrome/content/zotero/xpcom/data/itemFields.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/data/itemFields.js b/chrome/content/zotero/xpcom/data/itemFields.js index 450ad84b44..5f97f0b0b4 100644 --- a/chrome/content/zotero/xpcom/data/itemFields.js +++ b/chrome/content/zotero/xpcom/data/itemFields.js @@ -424,7 +424,11 @@ Zotero.ItemFields = new function() { * @returns {'auto' | 'ltr' | 'rtl'} */ this.getDirection = function (itemTypeID, field, itemLanguage) { - // Primary fields: follow app locale + // Collection in trash + if (!itemTypeID) { + return Zotero.dir; + } + // Date fields: follow app locale switch (field) { case 'dateAdded': case 'dateModified':