Fix creator search in Quick Format dialog

Broken by 7d404e8d4a
This commit is contained in:
Dan Stillman 2016-03-17 02:07:45 -04:00
parent 8830dfeff9
commit 11e3603a73

View file

@ -305,9 +305,7 @@ var Zotero_QuickFormat = new function () {
// Generate a string to search for each item
let item = citedItems[i];
let itemStr = item.getCreators()
.map(creator => {
creator.ref.firstName + " " + creator.ref.lastName
})
.map(creator => creator.ref.firstName + " " + creator.ref.lastName)
.concat([item.getField("title"), item.getField("date", true, true).substr(0, 4)])
.join(" ");