Skip to content

Commit

Permalink
#3520 Location improvements: use full country name instead of 2 lette…
Browse files Browse the repository at this point in the history
…rs code
  • Loading branch information
Alex Trofimov committed Mar 25, 2022
1 parent 46edd33 commit f3641dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions template/location_field_plain.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
var sStreet = $('input[name="__name___street"]').val();
var sNum = $('input[name="__name___street_number"]').val();

if (!sCountryCode || !sCountryCode.length)
if (!sCountry || !sCountry.length)
return '';

sRet = '&country=' + encodeURIComponent(sCountryCode);
sRet = '&country=' + encodeURIComponent(sCountry);

if (sZip.length && sMode !== 'no_street_no_zip')
sRet += '&postalcode=' + encodeURIComponent(sZip);
Expand Down

0 comments on commit f3641dd

Please sign in to comment.