Supatthra Nawicha created OFBIZ-8301:
----------------------------------------
Summary: 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
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 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)