title | issue |
---|---|
Handle form validation on the modal |
NEXT-21348 |
- Changed method
addressBook
atShopware\Storefront\Controller\AddressController
to catchConstraintViolationException
and pass the form violations to the view - Added an option
replaceSelectors
intoformAjaxSubmitOptions
at/storefront/component/address/address-editor-modal-create-address.html.twig
to determine which component should be replaced after ajax submits the form - Added new variable
postedData
at/storefront/component/address/address-editor-modal-create-address.html.twig
to store the previous data, which is submitted at the form - Added new condition to check
page.address
is not existed before rendering the Creation new Address Form at/storefront/component/address/address-editor-modal.html.twig
to prevent duplicate when bothaddress
andpage.address
have the value