#22468Function tslib_cObj::getTreeList() inserts records with empty PK
Description
If passed id is not numeric, the function will incorrectly insert a record to the database with an empty primary key. This happens because insert block is outside of the condition that checks the validity of the id.
(issue imported from #M14129)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.