From ca56fbbb2bb5cc6a7d45bf730bfe165260a06b26 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 25 Jul 2011 03:45:43 +0000 Subject: [PATCH] Fix at least one cause of "'[num]' is not a valid field for type [num]" --- chrome/content/zotero/xpcom/data/item.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js index 07ec7778f..d5baca4e0 100644 --- a/chrome/content/zotero/xpcom/data/item.js +++ b/chrome/content/zotero/xpcom/data/item.js @@ -772,8 +772,7 @@ Zotero.Item.prototype.setField = function(field, value, loadIn) { } // If existing value, make sure it's actually changing - if ((!this._itemData[fieldID] && !value) || - (this._itemData[fieldID] && this._itemData[fieldID]==value)) { + if (this._itemData[fieldID] === value) { return false; }