Always return from numDistinctFileAttachmentsForLabel()
once we're >1
This commit is contained in:
parent
834ee0ff6c
commit
5be5ca9416
1 changed files with 3 additions and 1 deletions
|
@ -1873,12 +1873,14 @@ Zotero.Items = function() {
|
|||
if (item.key == foundKey) {
|
||||
continue;
|
||||
}
|
||||
// More than 1 attachment found
|
||||
return MAX_ITEMS;
|
||||
}
|
||||
foundKey = item.key;
|
||||
num++;
|
||||
}
|
||||
if (num >= MAX_ITEMS) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return num;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue