Don't try to download attachments with empty paths, which can't be saved

This commit is contained in:
Dan Stillman 2010-09-01 05:42:02 +00:00
parent 338096e1a3
commit 01d3d0057c

View file

@ -1437,7 +1437,9 @@ Zotero.Sync.Storage = new function () {
}
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) {
sql += " AND libraryID IS NULL";
}