bug #12773 [API][FIX] Remove code attribute of OrderItem in API serialization (oallain, lchrusciel)

This PR was merged into the 1.11 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | master
| Bug fix?        | yes
| New feature?    | no
| BC breaks?      | no
| Deprecations?   | no <!-- don't forget to update the UPGRADE-*.md file -->
| Related tickets | 
| License         | MIT

OrderItem has no attribut `code` but this attribute is in Serialisation configuration.
This throw an error when we Normalize Object.

Commits
-------

4c4ef50ebf remove code attribute of OrderItem in API serialization
c4dece96c8 [UPGRADE] Add note about code field serialization removal in OrderItem
This commit is contained in:
Mateusz Zalewski 2022-07-19 16:14:47 +02:00 committed by GitHub
commit ca41cb687b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -5,6 +5,9 @@
`Sylius\Component\Channel\Context\RequestBased\HostnameBasedRequestResolver::findChannel` will start selecting only a channel from a range
of enabled channels.
2. The `code` field was removed from OrderItem serialization (in `src/Sylius/Bundle/ApiBundle/Resources/config/serialization/OrderItem.xml`)
as such field does not exist. Please, add it in your code base if you need it.
# UPGRADE FROM `v1.11.2` TO `v1.11.3`
1. Order Processors' priorities have changed and `sylius.order_processing.order_prices_recalculator` has now a higher priority than `sylius.order_processing.order_shipment_processor`.

View file

@ -23,11 +23,6 @@
<group>shop:order:account:read</group>
<group>shop:order_item:read</group>
</attribute>
<attribute name="code">
<group>admin:order:read</group>
<group>admin:order_item:read</group>
<group>shop:order_item:read</group>
</attribute>
<attribute name="order">
<group>admin:order_item:read</group>
<group>shop:order_item:read</group>