When a new user is added, the default value for the users "Your current logout threshold" is wrong.
Due to the user-id being NULL, the system reads every users logout threshold and uses them space-separated as the default value.
The provided patch checks for this edge case and fixes the bug.
| Comment | File | Size | Author |
|---|---|---|---|
| fix-new-user-default-threshold.patch | 736 bytes | Patrick Bauer |
Comments
Comment #2
deaom commentedThe patch applies. If you want to reproduce the bug without the patch, just add some users and give them different treshold values, then add a new user and you will se that all the previous users treshold values are listed in the textfield, divided by a blank space. After applying the patch, the treshold value is empty, so you can leave it empty or add a value.
Just be careful of the coding standards, one space is expected after the if keyword.
Comment #3
andypost+1 to rtbc
Comment #5
ajitsThank you for the patch, and reviews! Committed and pushed to 8.x-1.x
Comment #6
ajitsComment #8
ajits