www

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

commit 9796e60617aa5b2f100b6adf149e7c0508a22750
parent 147f325e4026cfd2439682bac39a89d16d7378bc
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sun, 17 Mar 2013 03:49:31 -0400

Don't update item when tabbing through empty Date field

Diffstat:
Mchrome/content/zotero/xpcom/data/item.js | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js @@ -822,8 +822,9 @@ Zotero.Item.prototype.setField = function(field, value, loadIn) { if (!loadIn) { // Save date field as multipart date // TEMP - filingDate - if ((Zotero.ItemFields.isFieldOfBase(fieldID, 'date') || field == 'filingDate') && - !Zotero.Date.isMultipart(value)) { + if (value !== false + && (Zotero.ItemFields.isFieldOfBase(fieldID, 'date') || field == 'filingDate') + && !Zotero.Date.isMultipart(value)) { value = Zotero.Date.strToMultipart(value); } // Validate access date