Don't try to download attachments with empty paths, which can't be saved
This commit is contained in:
parent
338096e1a3
commit
01d3d0057c
1 changed files with 3 additions and 1 deletions
|
@ -1437,7 +1437,9 @@ Zotero.Sync.Storage = new function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
var sql = "SELECT itemID FROM itemAttachments JOIN items USING (itemID) "
|
var sql = "SELECT itemID FROM itemAttachments JOIN items USING (itemID) "
|
||||||
+ "WHERE syncState IN (?,?)";
|
+ "WHERE syncState IN (?,?) "
|
||||||
|
// Skip attachments with empty path, which can't be saved
|
||||||
|
+ "AND path!=''";
|
||||||
if (includeUserFiles && !includeGroupFiles) {
|
if (includeUserFiles && !includeGroupFiles) {
|
||||||
sql += " AND libraryID IS NULL";
|
sql += " AND libraryID IS NULL";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue