Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1389

Remove hardcoded empty option in "CountryStatesHelper::PopulateStates" method

    XMLWordPrintable

    Details

    • 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

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                erik Erik Snarski [Intechnic]
                Developer:
                Erik Snarski [Intechnic]
                Reviewer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: