carmen-rails
carmen-rails copied to clipboard
subregion_select dropdown has value numeric instead of alphabet code
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.
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.
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..