www

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

commit 69d35f97b044f9e7d8c60365c37e6c5c31ce1406
parent 67bccfc9fe77b70bdf29552714c8fa05e8f42917
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 18 Mar 2013 23:08:39 -0700

Merge pull request #274 from aurimasv/newItem-fix

Unbreak adding new items
Diffstat:
Mchrome/content/zotero/xpcom/data/item.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js @@ -590,8 +590,8 @@ Zotero.Item.prototype.setType = function(itemTypeID, loadIn) { if (loadIn) { this._itemDataLoaded = false; } - else if(oldItemTypeID) { - this._markFieldChange('itemType', Zotero.ItemTypes.getName(oldItemTypeID)); + else { + if(oldItemTypeID) this._markFieldChange('itemType', Zotero.ItemTypes.getName(oldItemTypeID)); if (!this._changedPrimaryData) { this._changedPrimaryData = {}; }