[jira] [Comment Edited] (OFBIZ-6054) ofbizsetup cannot create first customer. problem with state/province dropdown

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Comment Edited] (OFBIZ-6054) ofbizsetup cannot create first customer. problem with state/province dropdown

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-6054?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16217388#comment-16217388 ]

Oleg Andreyev edited comment on OFBIZ-6054 at 10/24/17 6:21 PM:
----------------------------------------------------------------

I have attached the solution for this problem. As the author correctly mention this form inherit country/state fields from NewUser. As result the form has id="NewCustomer" but fields has ids based on NewUser_.

The script generated by setDependentDropdownValuesJs.ftl can work if both fields and form ids based on the same name. But it seems jQuery('#${dependentForm}').length in the script way redundant and it works nicely without it. See the patch.

16.11 is affected too.


was (Author: redcat):
I have attached the solution for this problem. As the author correctly mention this form inherit country/state fields from NewUser. As result the form has id="NewCustomer" but fields has ids based on NewUser_.

The script generated by setDependentDropdownValuesJs.ftl can work if both fields and form ids based on the same name. But it seems jQuery('#${dependentForm}').length in the script way redundant and it works nicely without it. See the patch.

> ofbizsetup cannot create first customer. problem with state/province dropdown
> -----------------------------------------------------------------------------
>
>                 Key: OFBIZ-6054
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-6054
>             Project: OFBiz
>          Issue Type: Bug
>          Components: commonext
>    Affects Versions: Trunk
>            Reporter: Wai
>            Assignee: Jacques Le Roux
>         Attachments: newcust_setup.diff
>
>
> -use empty database.
> -go to url. https://localhost:8443/ofbizsetup/control/firstcustomer
> notice that when entering the postal address, the state/province dropdown is empty and remains empty regardless of selection of the country dropdown.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)