mirror of
https://github.com/zotero/zotero.git
synced 2026-10-08 03:08:19 +00:00
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…
Add table
Reference in a new issue