Invalid option 'None' in multichoice dropdowns in Event search
|Assignee:||Radko Krkoš||% Done:|
|Category:||Development - GUI|
Several multichoice dropdowns on Event search contain the option 'None’ which, when selected, results the Search to fail with "'None’ is not a valid choice for this field”.How to reproduce:
- Set up query with Severities set to 'None’, press 'Search’
- A warning "'None’ is not a valid choice for this field” appears below the Severities multichoice element.
- Behavior confirmed for other multichoices offering 'None’ option (Source types, Categories, Classes, ...)
- Option 'None’ appears for columns containing NULL values at data level. Correct behaviour therefore probably is:
... WHERE "cesnet_eventseverity" is NULL ...or (in case of multi selection):
... WHERE "cesnet_eventseverity" is NULL OR "cesnet_eventseverity" = ANY(ARRAY[#1, #2, ...]) ...