Skip to content

Commit

Permalink
Use displayTitle when renaming attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed May 7, 2018
1 parent 4d83461 commit 811b87d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions chrome/content/zotero/xpcom/attachments.js
Expand Up @@ -794,6 +794,13 @@ Zotero.Attachments = new function(){
}
break;

case 'title':
var value = item.getDisplayTitle()
.replace(/^\[/, "")
.replace(/\]$/, "")
.replace(/\./g, "");
break;

default:
var value = '' + item.getField(field, false, true);
}
Expand Down

0 comments on commit 811b87d

Please sign in to comment.