OptionGroup check doesn't like option values of zero in a group of integers
The check for invalid option values gives a false positive when the option group's data_type
is Integer
and the value is 0
. This is particularly noticeable when you have the "Related Permissions" extension version 1.5 installed.
To test:
- Go to Administer » System Settings » Option Groups.
- Create a new option group with a data type of "Integer".
- Create an option value in that group with a value of "0".
- Run the
System.check
API (or visit the System Status screen). - A notice is thrown.
Expected behavior:
- No notice is thrown.