getByKey() doesn't take an array

This commit is contained in:
Dan Stillman 2009-04-09 20:54:28 +00:00
parent 0eebae010d
commit ebeb9976d2

View file

@ -1152,7 +1152,7 @@ Zotero.Integration.Session.prototype.editCitation = function(index, citation) {
if(citation) { if(citation) {
for each(var citationItem in citation.citationItems) { for each(var citationItem in citation.citationItems) {
if(citationItem.key && !citationItem.itemID) { if(citationItem.key && !citationItem.itemID) {
var item = Zotero.Items.getByKey([citationItem.key]); var item = Zotero.Items.getByKey(citationItem.key);
if(item) citationItem.itemID = item.itemID; if(item) citationItem.itemID = item.itemID;
} }
} }