Don't reuse item type and field ids in the item type manager anymore
This commit is contained in:
parent
14e3b05ca4
commit
b6f78acfd8
|
@ -192,11 +192,8 @@ var Scholar_ItemTypeManager = new function(){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
var nextID = Scholar.DB.getNextID(table, idCol);
|
var sql = "INSERT INTO " + table + " (" + nameCol + ") VALUES (?)";
|
||||||
|
Scholar.DB.query(sql, name);
|
||||||
var sql = "INSERT INTO " + table + " (" + idCol + ", "
|
|
||||||
+ nameCol + ") VALUES (?,?)";
|
|
||||||
Scholar.DB.query(sql, [nextID, name]);
|
|
||||||
|
|
||||||
init();
|
init();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user