From bcba0c915c654b2651190774437f13c49ffdd039 Mon Sep 17 00:00:00 2001 From: Jan Goralski Date: Wed, 20 Mar 2024 18:05:28 +0100 Subject: [PATCH] [Currency] Remove obsolete currency code validation --- UPGRADE-1.13.md | 6 +++--- .../CurrencyBundle/Resources/config/validation/Currency.xml | 5 ----- .../CurrencyBundle/Resources/translations/validators.en.yml | 1 - 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/UPGRADE-1.13.md b/UPGRADE-1.13.md index 0f9375c53b6..f0644662688 100644 --- a/UPGRADE-1.13.md +++ b/UPGRADE-1.13.md @@ -899,9 +899,9 @@ and use one of the new attributes accordingly to the type of your class, e.g.: in favour of the `Country` constraint. Due to that, their translation messages `sylius.country.code.regex` and `sylius.country.code.exact_length` were also removed. -1. The `Length` constraints has been removed from `Sylius\Component\Currency\Model\Currency` - in favour of the `Currency`constraint. - Due to that, the translation messages `sylius.currency.exact_length` was also removed. +1. The `Regex` and `Length` constraints have been removed from `Sylius\Component\Currency\Model\Currency` + in favour of the `Currency` constraint. + Due to that, their translation messages `sylius.currency.regex` and `sylius.currency.exact_length` were also removed. 1. The `Regex` constraint has been removed from `Sylius\Component\Locale\Model\Locale` in favour of the `Locale` constraint. diff --git a/src/Sylius/Bundle/CurrencyBundle/Resources/config/validation/Currency.xml b/src/Sylius/Bundle/CurrencyBundle/Resources/config/validation/Currency.xml index 9d1751c0806..93cc60b8f38 100644 --- a/src/Sylius/Bundle/CurrencyBundle/Resources/config/validation/Currency.xml +++ b/src/Sylius/Bundle/CurrencyBundle/Resources/config/validation/Currency.xml @@ -27,11 +27,6 @@ - - - - - diff --git a/src/Sylius/Bundle/CurrencyBundle/Resources/translations/validators.en.yml b/src/Sylius/Bundle/CurrencyBundle/Resources/translations/validators.en.yml index 9898d72ed77..91f11d2af79 100644 --- a/src/Sylius/Bundle/CurrencyBundle/Resources/translations/validators.en.yml +++ b/src/Sylius/Bundle/CurrencyBundle/Resources/translations/validators.en.yml @@ -2,7 +2,6 @@ sylius: currency: code: not_blank: Please choose currency code. - regex: Currency code can only be comprised of letters, numbers, dashes and underscores. unique: Currency code must be unique. currency: This value is not a valid currency code. exchange_rate: