/
The hardcoded empty option in "CountryStatesHelper::PopulateStates" [5.2.1-RC1]
The hardcoded empty option in "CountryStatesHelper::PopulateStates" [5.2.1-RC1]
Method "CountryStatesHelper::PopulateStates" automatically populates State dropdown with states, that match selected country (e.g. USA or Canada). However it also does 1 bad thing: adds an empty option.
As a fix I'm proposing to:
- remove empty option addition from that method
- check for places where states dropdown is being displayed and add has_empty="1" option there