Fix auto-rename after PDF recognition (wrong pref in f8b41c971)

This commit is contained in:
Dan Stillman 2018-02-28 16:27:11 -05:00
parent da49f9900f
commit 757709cf43

View file

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