ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OFBIZ-8301) The state dropdown not ordered alphabetically on the create/edit address screen of related components
Date Thu, 22 Sep 2016 09:04:20 GMT

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

Jacques Le Roux updated OFBIZ-8301:
-----------------------------------
    Attachment: Image2.png

Than Supatthra, it works for the problem at hand but not in general. At least not in our example
!Image2.png!

> 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: Image2.png, 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)

Mime
View raw message