From a714f0667045207cef8ff0facc0f7b0c186b6326 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 20 Feb 2018 03:32:03 -0500 Subject: [PATCH] Use Zotero.warn() for item.setCreator() warning --- 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 4aecb5ebef..52d1f9c53f 100644 --- 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); }