From 757709cf43cef7794659738b9dae50b936a6079f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 28 Feb 2018 16:27:11 -0500 Subject: [PATCH] Fix auto-rename after PDF recognition (wrong pref in f8b41c971) --- chrome/content/zotero/xpcom/recognizePDF.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/recognizePDF.js b/chrome/content/zotero/xpcom/recognizePDF.js index 0bd3d8593..cca865faf 100644 --- a/chrome/content/zotero/xpcom/recognizePDF.js +++ b/chrome/content/zotero/xpcom/recognizePDF.js @@ -268,7 +268,7 @@ Zotero.RecognizePDF = new function () { }); // Rename attachment file to match new metadata - if (Zotero.Prefs.get('renameAttachmentFiles')) { + if (Zotero.Prefs.get('renameAttachmentFiles.automatic')) { let path = attachment.getFilePath(); let ext = Zotero.File.getExtension(path); let fileBaseName = Zotero.Attachments.getFileBaseNameFromItem(parentItem);