carmen-rails icon indicating copy to clipboard operation
carmen-rails copied to clipboard

subregion_select dropdown has value numeric instead of alphabet code

Open arun-manthani opened this issue 8 years ago • 2 comments

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

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

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

arun-manthani avatar Apr 01 '16 06:04 arun-manthani

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.

ecbypi avatar Apr 01 '16 13:04 ecbypi

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

arun-manthani avatar Jul 12 '16 14:07 arun-manthani