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] [Comment Edited] (OFBIZ-6054) ofbizsetup cannot create first customer. problem with state/province dropdown
Date Thu, 26 Oct 2017 09:39:00 GMT

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

Jacques Le Roux edited comment on OFBIZ-6054 at 10/26/17 9:38 AM:
------------------------------------------------------------------

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.

16.11 is affected too.

> 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)

Mime
View raw message