www

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

commit a714f0667045207cef8ff0facc0f7b0c186b6326
parent 78e87a351cfc9c845eace9b2dee9cdfaa261ebf7
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 20 Feb 2018 03:32:03 -0500

Use Zotero.warn() for item.setCreator() warning

Diffstat:
Mchrome/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 @@ -1051,8 +1051,7 @@ Zotero.Item.prototype.setCreator = function (orderIndex, data) { var msg = "Creator type '" + Zotero.CreatorTypes.getName(data.creatorTypeID) + "' " + "isn't valid for " + Zotero.ItemTypes.getName(itemTypeID) + " -- changing to primary creator"; - Zotero.debug(msg, 2); - Components.utils.reportError(msg); + Zotero.warn(msg); data.creatorTypeID = Zotero.CreatorTypes.getPrimaryIDForType(itemTypeID); }