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;
|
||||
|
||||
case 'filename':
|
||||
if (val === "") {
|
||||
Zotero.logError("Ignoring empty attachment filename in item JSON");
|
||||
}
|
||||
else {
|
||||
this.attachmentFilename = val;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'path':
|
||||
|
|
Loading…
Reference in New Issue
Block a user