// Fixed parse error in JS caused by quote in country names
This commit is contained in:
@@ -34,7 +34,7 @@ countriesNeedZipCode = new Array();
|
||||
{if isset($country.states) && $country.contains_states}
|
||||
countries[{$country.id_country|intval}] = new Array();
|
||||
{foreach from=$country.states item='state' name='states'}
|
||||
countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state}', 'name' : '{$state.name}'{rdelim});
|
||||
countries[{$country.id_country|intval}].push({ldelim}'id' : '{$state.id_state}', 'name' : '{$state.name|addslashes}'{rdelim});
|
||||
{/foreach}
|
||||
{/if}
|
||||
{if $country.need_identification_number}
|
||||
|
||||
Reference in New Issue
Block a user