From 5bc2b64eedf6314019671255a18c812293d32040 Mon Sep 17 00:00:00 2001 From: dMetzger Date: Thu, 13 Sep 2012 09:48:50 +0000 Subject: [PATCH] // Fixed parse error in JS caused by quote in country names git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17331 b9a71923-0436-4b27-9f14-aed3839534dd --- themes/default/address.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/default/address.tpl b/themes/default/address.tpl index 6528ee1ee..6cb69e1af 100644 --- a/themes/default/address.tpl +++ b/themes/default/address.tpl @@ -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}