mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Add info about disabled callback for state machine sylius_product_review
This commit is contained in:
parent
37117981eb
commit
121e3afc9d
1 changed files with 20 additions and 0 deletions
|
|
@ -1,3 +1,23 @@
|
|||
# UPGRADE FROM `2.1.7` TO `2.1.8`
|
||||
|
||||
## State Machine
|
||||
|
||||
1. Product Review Average Rating Update
|
||||
The `after` callback for updating average ratings when a review is accepted has been disabled to prevent duplicate calculations.
|
||||
This change affects the `sylius_product_review` state machine configuration in the `accept` transition.
|
||||
|
||||
The average rating updater callback had priority `-100` and was being executed twice, which has now been fixed by disabling this specific callback.
|
||||
|
||||
```diff
|
||||
callbacks:
|
||||
after:
|
||||
sylius_update_rating:
|
||||
on: ["accept"]
|
||||
do: ["@sylius.product_review.average_rating_updater", "updateFromReview"]
|
||||
args: ["object"]
|
||||
priority: -100
|
||||
+ disabled: true
|
||||
```
|
||||
# UPGRADE FROM `2.1.5` TO `2.1.6`
|
||||
|
||||
### API Platform
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue