Open ioweb-gr opened 2 years ago
I've noticed that even without "Use Default Value" if I resave the entity with an empty value on the store view level, the upper scope level value is deleted.
So in a tree like this
All Store Views (Value Default)
|--Website (Value Website)
|----Store View 1 (Value Store View 1)
|----Store View 2 (Value Store View 2)
If I navigate to Store View 2 and save twice with an empty value
On the first save the "Value Store View 2" is deleted. On the second save the "Value Website" is deleted even though I didn't change scope.
Any ideas what this bug is?
I've created an EAV entity with this template, and added a custom attribute with store view scope.
e.g.
My problem here is when trying to save the object in the backend for a different store view other than default, I'm unable to reset the value to use default.
I've tried modifying the ui form component to add the "Use Default Value" checkbox to test, but it's totally ignored
e.g.
And after saving the value still remains. It's never deleted for the current store view.
I'm assuming something is missing from the resourceModel to handle the "Use Default Value"?