www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit b1a70bff3d7c5cf3c9ad67eb7aff88d7182a305a
parent 4caae896cfae8be0b03169a75abd03606127f8a7
Author: Simon Kornblith <simon@simonster.com>
Date:   Sun, 25 Nov 2012 16:04:39 -0500

Merge branch '3.0'

Diffstat:
Mchrome/content/zotero/xpcom/utilities.js | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/utilities.js b/chrome/content/zotero/xpcom/utilities.js @@ -1189,6 +1189,12 @@ Zotero.Utilities = { * uniqueFields array */ "itemToExportFormat":function(item) { + const CREATE_ARRAYS = ['creators', 'notes', 'tags', 'seeAlso', 'attachments']; + for(var i=0; i<CREATE_ARRAYS.length; i++) { + var createArray = CREATE_ARRAYS[i]; + if(!item[createArray]) item[createArray] = []; + } + item.uniqueFields = {}; // get base fields, not just the type-specific ones