diff --git a/chrome/content/zotero/xpcom/db.js b/chrome/content/zotero/xpcom/db.js index 279165b927..707c38bd09 100644 --- a/chrome/content/zotero/xpcom/db.js +++ b/chrome/content/zotero/xpcom/db.js @@ -331,8 +331,10 @@ Zotero.DBConnection.prototype.getColumns = function (table) { **/ Zotero.DBConnection.prototype.getNextName = Zotero.Promise.coroutine(function* (libraryID, table, field, name) { + Zotero.debug("WARNING: Zotero.DB.getNextName() is deprecated -- " + + "use Zotero.Utilities.Internal.getNextName() instead", 2); + if (typeof name == 'undefined') { - Zotero.debug("WARNING: The parameters of Zotero.DB.getNextName() have changed -- update your code", 2); [libraryID, table, field, name] = [null, libraryID, table, field]; }