If you add in USER LEVEL a new level, this new item goes at the end of the user levels list. And receive an id number that we can see in Users table, in the field Level. And for all new level the situation is the same.
And we can use the ID assigned to make some filter using CurrentUserLevel() funtion.
But, if you want, in a different moment of the development, change the name of user level and rename one userLevel … PHPmaker sort all user levels created … but CHANGING the assigned ID NUMBER !
And this is a real problem in advanced development.
If you use Static User Levels, the user level IDs are determined by order of user levels you set up in the left pane. If you need to change the user levels dynamically, you better use Dynamic User Levels.
But why is this different behavior between adding a new user level (which, as you can verify, is ALWAYS added to the end of those already created and absolutely does not alter the ID) and … rename a created user level, which immediately generates an upheaval of the IDs by reordering everything?
This is what I don’t understand… it should do it then even when a new one is added.
For me it’s a bug.
It’s certainly not something wanted.
If it reorders the user levels when renaming one…then it should do so by adding as well
I use v2025 and I cannot reproduce it. Even deleting a user level in the middle will not change the user ID either. I believe the behavior has been changed since v2025.