addresses #933, subsequent-author-substitute no longer works

should fix issues with no authors. still need to come up with some way to make subsequent-author-substitute work for subsequent editors and translators, but this is a more difficult problem.
This commit is contained in:
Simon Kornblith 2008-02-18 09:37:37 +00:00
parent 8ccae9c92b
commit ee3f8ee47f

View File

@ -2637,7 +2637,7 @@ Zotero.CSL.ItemSet.prototype.resort = function() {
}
if(this.options["subsequent-author-substitute"]
&& lastNames && lastNames.length == names.length) {
&& lastNames && names.length && lastNames.length == names.length) {
var namesDiffer = false;
for(var j=0; j<names.length; j++) {
namesDiffer = (names[j].getNameVariable("lastName") != lastNames[j].getNameVariable("lastName")