From acff93118a741f4064350d1da533274cfcffd8a3 Mon Sep 17 00:00:00 2001 From: Ihor Sviziev Date: Wed, 31 Mar 2021 13:27:28 +0300 Subject: [PATCH 1/2] Fix JS error on the create account page with multishipping --- .../view/frontend/templates/form/register.phtml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/code/Magento/Customer/view/frontend/templates/form/register.phtml b/app/code/Magento/Customer/view/frontend/templates/form/register.phtml index a2ed1a8b4b92b..d31437afb7e09 100644 --- a/app/code/Magento/Customer/view/frontend/templates/form/register.phtml +++ b/app/code/Magento/Customer/view/frontend/templates/form/register.phtml @@ -342,9 +342,9 @@ script; renderTag('script', [], $scriptString, false) ?> getShowAddressFields()): ?> getRegionJson(); - $regionId = (int) $formData->getRegionId(); - $countriesWithOptionalZip = /* @noEscape */ $directoryHelper->getCountriesWithOptionalZip(true); + $regionJson = $directoryHelper->getRegionJson(); + $regionId = (int)$formData->getRegionId(); + $countriesWithOptionalZip = $directoryHelper->getCountriesWithOptionalZip(true); ?>