You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Paul Foxworthy (JIRA)" <ji...@apache.org> on 2013/01/12 05:10:13 UTC

[jira] [Updated] (OFBIZ-5125) No states displayed for default country in New Shipping Address for order

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

Paul Foxworthy updated OFBIZ-5125:
----------------------------------

    Attachment: OFBIZ-5125_initial_state_list
    
> No states displayed for default country in New Shipping Address for order
> -------------------------------------------------------------------------
>
>                 Key: OFBIZ-5125
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5125
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: SVN trunk
>            Reporter: Paul Foxworthy
>            Assignee: Paul Foxworthy
>            Priority: Minor
>         Attachments: OFBIZ-5125_initial_state_list
>
>
> On the demo site, go to https://demo-trunk.ofbiz.apache.org/ordermgr/control/orderview?orderId=WSCO10001 and click on New Shipping Address. No states are displayed for the default country, USA. Once you choose a country, states are displayed properly.
> Have a look at the pattern used elsewhere in OFBIZ in framework/common/webcommon/includes/setDependentDropdownValuesJs.ftl (https://fisheye6.atlassian.com/browse/ofbiz/trunk/framework/common/webcommon/includes/setDependentDropdownValuesJs.ftl). A change event calls a function, in this case getDependentDropdownValues, and there's a call to the function to set an initial vale for the dependent value based on the default value of the source data.
> Compare the code in https://fisheye6.atlassian.com/browse/ofbiz/trunk/applications/order/webapp/ordermgr/images/js/OrderShippingInfo.js, which sets up the change event but does not set a default value. The patch includes a call to getAssociatedStateList to fix the problem.
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira