commit ab25a306fd219d5ce39c62d152901e36df6f8035
parent 304f46c8cc7f10c29acabad139bfd17f22ea3650
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 18 Mar 2015 22:56:53 -0400
Add libraries table support to Zotero.ID.getNext()
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git 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';