Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5933

state/province dropdown contains incorrect items when Canada is chosen in country dropdown

    Details

      Description

      When creating a postal address, selecting Canada for country automatically filled the state/province dropdown with values. The issue is that the values of the state/province dropdown list are incorrect.

      I was expecting the options for the state/province dropdown to have the following:
      name=Alberta, value=AB
      name=British Columbia, value=BC
      ...

      What is actually present in the drop down is:
      name=AB, value=AB
      name=AB, value=BC
      ...

      One observation is that this issue does not appear when the country selected is the United States. It seems to happen with Canada.
      Another observation is that this issue applies to the 'en' locale. It seems to work fine for 'fr' locale.

        Activity

        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Thanks Wai,

        Your patch is in
        trunk r1650642
        R14.12 r1650643
        R13.07 r1650644
        R12.04 r1650645

        Show
        jacques.le.roux Jacques Le Roux added a comment - Thanks Wai, Your patch is in trunk r1650642 R14.12 r1650643 R13.07 r1650644 R12.04 r1650645
        Hide
        jacques.le.roux Jacques Le Roux added a comment - - edited

        This is due to old labels in CommonEntityLabels.xml like

        <property key="Geo.geoName.ON">

        Should be

        Index: framework/common/config/CommonEntityLabels.xml
        ===================================================================
        --- framework/common/config/CommonEntityLabels.xml	(revision 1650460)
        +++ framework/common/config/CommonEntityLabels.xml	(working copy)
        @@ -6939,7 +6939,7 @@
                 <value xml:lang="zh_TW">阿曼</value>
             </property>
             <property key="Geo.geoName.ON">
        -        <value xml:lang="en">ON</value>
        +        <value xml:lang="en">Ontario</value>
                 <value xml:lang="fr">Ontario</value>
                 <value xml:lang="it">Ontario</value>
                 <value xml:lang="ja">オンタリオ</value>
        

        Could you please provide a complete patch?

        Show
        jacques.le.roux Jacques Le Roux added a comment - - edited This is due to old labels in CommonEntityLabels.xml like <property key="Geo.geoName.ON"> Should be Index: framework/common/config/CommonEntityLabels.xml =================================================================== --- framework/common/config/CommonEntityLabels.xml (revision 1650460) +++ framework/common/config/CommonEntityLabels.xml (working copy) @@ -6939,7 +6939,7 @@ <value xml:lang= "zh_TW" >阿曼</value> </property> <property key= "Geo.geoName.ON" > - <value xml:lang= "en" >ON</value> + <value xml:lang= "en" >Ontario</value> <value xml:lang= "fr" >Ontario</value> <value xml:lang= "it" >Ontario</value> <value xml:lang= "ja" >オンタリオ</value> Could you please provide a complete patch?
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Weirdly this does not happen for Saskatchewan, checking why...

        Show
        jacques.le.roux Jacques Le Roux added a comment - Weirdly this does not happen for Saskatchewan, checking why...
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Oops wait, I forgot to switch to English, I got an issue then, checking locally...

        Show
        jacques.le.roux Jacques Le Roux added a comment - Oops wait, I forgot to switch to English, I got an issue then, checking locally...
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        I can't reproduce at http://demo-trunk-ofbiz.apache.org/partymgr/control/editcontactmech could you please be more precise about place/s (url/s) and steps?

        Show
        jacques.le.roux Jacques Le Roux added a comment - I can't reproduce at http://demo-trunk-ofbiz.apache.org/partymgr/control/editcontactmech could you please be more precise about place/s (url/s) and steps?
        Hide
        wt Wai added a comment -

        closed by mistake. reopen.

        Show
        wt Wai added a comment - closed by mistake. reopen.
        Hide
        wt Wai added a comment -

        Cannot reproduce the issue as of version 1650250

        Show
        wt Wai added a comment - Cannot reproduce the issue as of version 1650250

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            wt Wai
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development