Don't reuse item type and field ids in the item type manager anymore
This commit is contained in:
parent
14e3b05ca4
commit
b6f78acfd8
1 changed files with 2 additions and 5 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue