Ignore empty 'filename' property in Item.fromJSON()
This commit is contained in:
parent
e3da547c81
commit
3214e37d92
|
@ -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':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user