From ab25a306fd219d5ce39c62d152901e36df6f8035 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 18 Mar 2015 22:56:53 -0400 Subject: [PATCH] Add libraries table support to Zotero.ID.getNext() --- chrome/content/zotero/xpcom/id.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/chrome/content/zotero/xpcom/id.js b/chrome/content/zotero/xpcom/id.js index 4387a963a..735553354 100644 --- a/chrome/content/zotero/xpcom/id.js +++ b/chrome/content/zotero/xpcom/id.js @@ -53,6 +53,7 @@ Zotero.ID_Tracker = function () { // // Callers need to handle a potential NULL for these unless they // pass |notNull| + case 'libraries': case 'items': case 'creators': case 'creatorData': @@ -138,6 +139,7 @@ Zotero.ID_Tracker = function () { case 'creatorData': case 'itemDataValues': case 'items': + case 'libraries': case 'savedSearches': case 'tags': case 'customItemTypes': @@ -241,6 +243,7 @@ Zotero.ID_Tracker = function () { case 'tags': break; + case 'libraries': case 'collections': case 'savedSearches': case 'customItemTypes': @@ -326,6 +329,9 @@ Zotero.ID_Tracker = function () { function _getTableColumn(table) { switch (table) { + case 'libraries': + return 'libraryID'; + case 'itemDataValues': return 'valueID';