Supatthra Nawicha created OFBIZ-8301:

             Summary: The state dropdown not ordered alphabetically on the 
create/edit address screen of related components
                 Key: OFBIZ-8301
             Project: OFBiz
          Issue Type: Bug
          Components: party
    Affects Versions: Trunk
            Reporter: Supatthra Nawicha
            Priority: Minor
             Fix For: Trunk

I have found this issue when I try to create a new customer from the party 
manager. Then I try to select the state of UK but I see the state is not order 

I have check on the getAssociatedStateList service and it provide the 
listOrderBy parameter for order the value on the state dropdown but the 
getDependentDropdownValues function on javascript does not send the listOrderBy 
parameter to the service. 

public static List<GenericValue> getAssociatedStateList(Delegator delegator, 
String country, String listOrderBy) {
        if (UtilValidate.isEmpty(country)) {
            // Load the system default country
            country = EntityUtilProperties.getPropertyValue("general", 
"", delegator);

        if (UtilValidate.isEmpty(listOrderBy)) {
            listOrderBy = "geoId";
        List<String> sortList = UtilMisc.toList(listOrderBy);


This message was sent by Atlassian JIRA

Reply via email to