Ignore empty 'filename' property in Item.fromJSON()

This commit is contained in:
Dan Stillman 2015-05-08 02:42:48 -04:00
parent e3da547c81
commit 3214e37d92

View File

@ -4074,7 +4074,12 @@ Zotero.Item.prototype.fromJSON = Zotero.Promise.coroutine(function* (json) {
break; break;
case 'filename': case 'filename':
this.attachmentFilename = val; if (val === "") {
Zotero.logError("Ignoring empty attachment filename in item JSON");
}
else {
this.attachmentFilename = val;
}
break; break;
case 'path': case 'path':