-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Preconditions (*)
- Magento 2.4.3-p1
- A module which creates a custom EAV Entity
Classes responsible for the value saving
\Magento\Eav\Model\Entity\AbstractEntity
\Magento\Eav\Model\Entity\Attribute\Backend\DefaultBackend
Steps to reproduce (*)
- Please install the provided module which creates a custom EAV Entity and try to edit the
name
value in theContent -> TestEntity
menu. - Play around with deleting the store view scope value in name attribute.
- See the video for detailed explanation
module.zip
You will notice that whenever you try to save in the store view scope for the attribute name
with an empty value or with the use default value
checkbox:
one value is going to be deleted in the attribute for the current store id properly
but if there isn't a current value for the store id, the default value is going to be deleted.
There are no docs on the correct procedure to create a custom EAV Entity but even if there was one, this looks more like a bug, rather than missing documentation so I decided to post it here.
Expected result (*)
- The AbstractEntity class and the DefaultBackend will delete values only in the currently edited scope and retain the parent scope value
Actual result (*)
- The AbstactEntity class and the DefaultBackend will delete values in the parent scope one level above the one being edited.
Notepad_C0cqkEcRaw.mp4
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.