vc-platform
vc-platform copied to clipboard
Item Properties using dictionaries don't update when dictionary value is updated or deleted
Describe the bug When you update the value in the dictionary for a given property, that change is not propagated to the items with that property value.
Steps to reproduce Steps to reproduce the behavior:
- Go to an item in the catalog
- Click on the properties widget
- If you don't already have a property that uses a dictionary, create new property with Value Type "Short Text" and then toggle Dictionary to true. Click Manage Dictionary and add a few values to the list
- Back on the item's Property list blade, set the property to one of the dictionary values
- Click OK
- Click Save on the Physical item details blade
- Open the Properties again
- Click the edit pencil icon next to the property created
- Click Manage Dictionary
- EITHER OF THE FOLLOWING
- Click on the value you have saved on the item, edit the value text and click Save
- OR Delete the value from the dictionary
Expected behavior If you edited the dictionary value, the property value on the item should reflect the updated value. If you deleted the value from the dictionary, it should not still be selected in that property.
Screenshots (optional) If applicable, add screenshots to help explain your problem.
Version info (please complete the following information):
- Browser version: Google Chrome Version 116.0.5845.97
- Platform version: 3.31.6.0
Additional context (optional) Add any other context about the problem here.
Task https://virtocommerce.atlassian.net/browse/VP-8432 has been created
Hi, @alynabriscoe!
Please send us the full platform manifest (with modules installed).
vc-platform-info.zip Here's both the manifest and package @Dan-BV
@alynabriscoe We thank you for your appeal. A bug has been added to the platform project on this issue. We will inform you about the change in its status.
@alynabriscoe @Dan-BV I think, it's correct behaviour. By default. if you update/delete the value in the dictionary for a given property, that change is not propagated to the items with that property value.
It's preventing from data corruption.
To achieve your requirement, I think we can implement options,that we did for catalog module:
- Update Metadata Only
- Apply on items
@OlegoO that sounds like a good option to me! Would that work for both updating a value as well as deleting it?