Don't include 'filename' in linked_file attachment JSON
This commit is contained in:
parent
fc6c113f25
commit
c5702abb7b
2 changed files with 10 additions and 1 deletions
|
@ -4093,7 +4093,7 @@ Zotero.Item.prototype.toJSON = function (options = {}) {
|
|||
if (linkMode == Zotero.Attachments.LINK_MODE_LINKED_FILE) {
|
||||
obj.path = this.attachmentPath;
|
||||
}
|
||||
else {
|
||||
else if (linkMode != Zotero.Attachments.LINK_MODE_LINKED_URL) {
|
||||
obj.filename = this.attachmentFilename;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue