Add upgrade note

This commit is contained in:
piotrbalcerzak 2026-03-23 10:48:50 +01:00 committed by TheMilek
parent 58969e98a3
commit e804eb3026
No known key found for this signature in database
GPG key ID: A3F43F426B5286AA

View file

@ -1,5 +1,41 @@
# UPGRADE FROM `2.1.13` TO `2.1.14`
### Admin resource translations
Translations for admin-managed resources (such as product options, attributes, associations) are now resolved using the current admin locale instead of the default `%locale%` parameter.
Previously, translation-aware query builders relied on a static `%locale%` parameter, which could lead to inconsistencies when the admin user was working in a different language than the application default.
This has been updated to dynamically resolve the locale from the admin context.
### Before
```yaml
sylius_grid:
grids:
sylius_admin_product_association_type:
driver:
name: doctrine/orm
options:
class: "%sylius.model.product_association_type.class%"
repository:
method: createListQueryBuilder
arguments: ["%locale%"]
```
### After
```yaml
sylius_grid:
grids:
sylius_admin_product_association_type:
driver:
name: doctrine/orm
options:
class: "%sylius.model.product_association_type.class%"
repository:
method: createListQueryBuilder
arguments: ["expr:service('sylius.context.locale').getLocaleCode()"]
```
### Restore missing admin resource show title
A missing page title has been restored to the admin resource show pages (e.g. product, order, customer, shipment, catalog promotion).