Return formatted item data values in Item.toArray() and Item.serialize() rather than raw strings (to fix messy date values for certain item types on export)
This commit is contained in:
parent
76b9b4829c
commit
1ccc84eb42
1 changed files with 2 additions and 2 deletions
|
@ -4129,7 +4129,7 @@ Zotero.Item.prototype.toArray = function (mode) {
|
|||
|
||||
// Item metadata
|
||||
for (var i in this._itemData) {
|
||||
arr[Zotero.ItemFields.getName(i)] = this._itemData[i] ? this._itemData[i] + '': '';
|
||||
arr[Zotero.ItemFields.getName(i)] = this.getField(i) + '';
|
||||
}
|
||||
|
||||
if (mode == 1 || mode == 2) {
|
||||
|
@ -4266,7 +4266,7 @@ Zotero.Item.prototype.serialize = function(mode) {
|
|||
|
||||
// Item metadata
|
||||
for (var i in this._itemData) {
|
||||
arr.fields[Zotero.ItemFields.getName(i)] = this._itemData[i] ? this._itemData[i] + '' : '';
|
||||
arr.fields[Zotero.ItemFields.getName(i)] = this.getField(i) + '';
|
||||
}
|
||||
|
||||
if (mode == 1 || mode == 2) {
|
||||
|
|
Loading…
Add table
Reference in a new issue