www

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

commit cc93a0c7b884660d413c37d186122f54ef6f26bf
parent 67bccfc9fe77b70bdf29552714c8fa05e8f42917
Author: Aurimas Vinckevicius <aurimas.dev@gmail.com>
Date:   Tue, 19 Mar 2013 01:05:53 -0500

Unbreak adding new items. Broken by dbf6bc0ee1fb216953be43176011f93627ca2208.

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 = {}; }