-
Type: Bug Report
-
Status: Closed
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.2.2-B1
-
Component/s: Data Management
-
Labels:None
-
Change Log Group:Fixed
-
Change Log Message:It was impossible to remove an empty option in country's state dropdown.
-
Copy Issue Key:
-
Patch Instructions:
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:
1. remove empty option addition from that method
2. check for places where states dropdown is being displayed and add has_empty="1" option there