What is the problem?
After settings the two checkboxes in the IP Information section globally, the state of I agree to use this information for my patrolling and anti-vandalism work in Special:Preferences can be incorrect:
- After checking Show the IP Information tool on Special:Contributions page for IP addresses, it is enabled even if the local exception is not checked
- If you then check the local exception, it becomes disabled
I agree to use this information for my patrolling and anti-vandalism work should be enabled when Show the IP Information tool on Special:Contributions page for IP addresses is checked (this is how the two options behave when not set globally), but only if its local exception is also checked.
The way to work around this bug I have found is to check the local exception for I agree to use this information for my patrolling and anti-vandalism work first and then check Show the IP Information tool on Special:Contributions page for IP addresses.
Steps to reproduce problem
- Login as a user with Administrator rights
- Go to Special:GlobalPreferences (e.g. https://en.wikipedia.beta.wmflabs.org/wiki/Special:GlobalPreferences)
- Make Show the IP Information tool on Special:Contributions page for IP addresses and I agree to use this information for my patrolling and anti-vandalism work global options
- Go to Special:Preferences
- Check Show the IP Information tool on Special:Contributions page for IP addresses and its local exception (you will have to check the latter first)
Expected behavior: I agree to use this information for my patrolling and anti-vandalism work remains disabled
Observed behavior: I agree to use this information for my patrolling and anti-vandalism work becomes enabled, even though the local exception has not been checked
- Check the local exception for I agree to use this information for my patrolling and anti-vandalism work
Expected behavior: I agree to use this information for my patrolling and anti-vandalism work is enabled
Observed behavior: I agree to use this information for my patrolling and anti-vandalism work is disabled
Environment
Browser: Firefox 78
Wiki(s): https://en.wikipedia.beta.wmflabs.org GlobalPreferences 0.1.2 (c91eb42) 15:24, 9 December 2021.
Screenshots
Initial state of those two options in Special:Preferences:
After checking the first option:
After checking the local exception for the second option: