From b6f78acfd8c4462b7919047219446bc8ca9ad362 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sun, 10 Sep 2006 20:16:48 +0000 Subject: [PATCH] Don't reuse item type and field ids in the item type manager anymore --- .../chromeFiles/content/scholar/admin/itemTypeManager.js | 7 ++----- 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 index b05d5b0e3..96bb0560b 100644 --- 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();