From d9a45726d40ef0529fe10b48d5ea7aee3bb03a13 Mon Sep 17 00:00:00 2001 From: Abe Jellinek Date: Mon, 7 Jul 2025 13:24:46 -0400 Subject: [PATCH] Fix read-only title box on non-file attachment Regression in e625c0009eaee8884143e95769f8624688385e10 https://forums.zotero.org/discussion/125214/attachment-title-of-web-links-cannot-be-modified --- chrome/content/zotero/elements/attachmentBox.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/elements/attachmentBox.js b/chrome/content/zotero/elements/attachmentBox.js index 80f3703c77..f285349e35 100644 --- a/chrome/content/zotero/elements/attachmentBox.js +++ b/chrome/content/zotero/elements/attachmentBox.js @@ -433,8 +433,8 @@ else { fileNameRow.hidden = true; } - this._id("title").toggleAttribute("readonly", (!this.editable || !fileExists)); - this._id("fileName").toggleAttribute("readonly", (!this.editable || !fileExists)); + this._id("title").toggleAttribute("readonly", !this.editable); + this._id("fileName").toggleAttribute("readonly", !this.editable || !fileExists); // Page count if (this.displayPages && this._item.isPDFAttachment()) {