Don't reuse item type and field ids in the item type manager anymore

This commit is contained in:
Dan Stillman 2006-09-10 20:16:48 +00:00
parent 14e3b05ca4
commit b6f78acfd8

View file

@ -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();