Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that saved editorial reviews are not marked as inherited #730

Conversation

j-mok
Copy link
Contributor

@j-mok j-mok commented May 8, 2024

When I have a product variation that inherit reviews (descriptions) from the parent, these reviews are editable, but the edits won't get persisted in the database - they get silently dropped without a warning. This behavior is due to the fact that those edited inherited reviews are ignored when mapping CatalogProduct to ItemService - there's a filter on EditorialReview.IsInherited property.

This PR offers a small change in the UI code, that clears the isInherited flag on those editorial reviews that got saved, effectively promoting them to variation's own reviews. In effect, the user can now directly override inherited reviews in variants.

@vc-ci
Copy link
Contributor

vc-ci commented May 8, 2024

Reveiw task created: https://virtocommerce.atlassian.net/browse/VCST-1196

@OlegoO OlegoO requested a review from artem-dudarev May 8, 2024 11:03
@OlegoO OlegoO changed the base branch from dev to fix/VCST-1196 May 13, 2024 12:49
@OlegoO OlegoO merged commit 93ccaa0 into VirtoCommerce:fix/VCST-1196 May 13, 2024
4 checks passed
OlegoO added a commit that referenced this pull request May 14, 2024
…rited (#730) (#731)

fix: Ensure that saved editorial reviews are not marked as inherited (#730)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants