Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subregion_select dropdown has value numeric instead of alphabet code #58

Open
arun-manthani opened this issue Apr 1, 2016 · 2 comments

Comments

@arun-manthani
Copy link

Hi there,
As part of testing just observed that for country Denmark, the subregion select dropdown has value numeric.

State Hovedstaden Midtjylland Nordjylland Sjælland Syddanmark

On saving it, the same numeric value is being saved in table.

Is it normal behaviour, any fix will be really appreciated.

@ecbypi
Copy link
Contributor

ecbypi commented Apr 1, 2016

Those are the region codes as found by the iso-codes debian package so this is expected behavior unless that codes have changed since the last time the script was run in the carmen gem.

@arun-manthani
Copy link
Author

arun-manthani commented Jul 12, 2016

Select tag looks like this:

<select id="cutomer_state">
   <option value="84"> Hovedstaden  </option>
    <option value="82"> Midtjylland </option>
    <option value="81"> Nordjylland </option>
    <option value="85"> Sjælland </option>
    <option value="83"> Syddanmark </option>
</select>

So on saving value, 84 saves in the database instead of state code..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants