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

This commit is contained in:
Dan Stillman 2018-02-20 03:32:03 -05:00
parent 78e87a351c
commit a714f06670

View file

@ -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);
}