From 6059bf0e1b6af3e2899fd191f8b20b2aa0032cb2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 23 Nov 2009 06:58:52 +0000 Subject: [PATCH] Always rename attachment title when using Rename File from Parent Metadata --- chrome/content/zotero/overlay.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index fc6be008ba..012f62e2a3 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -3046,9 +3046,6 @@ var ZoteroPane = new function() continue; } - // If the attachment title was the same as the filename, change it too - var renameTitle = item.getField('title') == file.leafName; - var parentItemID = item.getSource(); var newName = Zotero.Attachments.getFileBaseNameFromItem(parentItemID); @@ -3063,10 +3060,8 @@ var ZoteroPane = new function() continue; } - if (renameTitle) { - item.setField('title', newName); - item.save(); - } + item.setField('title', newName); + item.save(); } return true;