commit ca56fbbb2bb5cc6a7d45bf730bfe165260a06b26 parent 9dad54702f136483e0f2e139c98c04f1e108654a Author: Dan Stillman <dstillman@zotero.org> Date: Mon, 25 Jul 2011 03:45:43 +0000 Fix at least one cause of "'[num]' is not a valid field for type [num]" Diffstat:
| M | 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 @@ -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; }