[ 
https://issues.apache.org/jira/browse/OFBIZ-8301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Supatthra Nawicha updated OFBIZ-8301:
-------------------------------------
    Attachment: OFBIZ-8301.patch

> The state dropdown not ordered alphabetically on the create/edit address 
> screen of related components
> -----------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-8301
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-8301
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: Trunk
>            Reporter: Supatthra Nawicha
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: Trunk
>
>         Attachments: Image4.png, OFBIZ-8301.patch
>
>
> 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 alphabetically. 
> 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. 
> {code:title=framework/common/src/main/java/org/apache/ofbiz/common/CommonWorkers.java|borderStyle=solid}
> public static List<GenericValue> getAssociatedStateList(Delegator delegator, 
> String country, String listOrderBy) {
>         if (UtilValidate.isEmpty(country)) {
>             // Load the system default country
>             country = EntityUtilProperties.getPropertyValue("general", 
> "country.geo.id.default", delegator);
>         }
>         if (UtilValidate.isEmpty(listOrderBy)) {
>             listOrderBy = "geoId";
>         }
>         List<String> sortList = UtilMisc.toList(listOrderBy);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to