commit b6f78acfd8c4462b7919047219446bc8ca9ad362
parent 14e3b05ca4603f57c2da9a4966aff5fd1f9a90a3
Author: Dan Stillman <dstillman@zotero.org>
Date: Sun, 10 Sep 2006 20:16:48 +0000
Don't reuse item type and field ids in the item type manager anymore
Diffstat:
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/chrome/chromeFiles/content/scholar/admin/itemTypeManager.js b/chrome/chromeFiles/content/scholar/admin/itemTypeManager.js
@@ -192,11 +192,8 @@ var Scholar_ItemTypeManager = new function(){
return true;
}
- var nextID = Scholar.DB.getNextID(table, idCol);
-
- var sql = "INSERT INTO " + table + " (" + idCol + ", "
- + nameCol + ") VALUES (?,?)";
- Scholar.DB.query(sql, [nextID, name]);
+ var sql = "INSERT INTO " + table + " (" + nameCol + ") VALUES (?)";
+ Scholar.DB.query(sql, name);
init();