You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce
mg2-codegen template:generate crudEAV
magento/admin->content->gridItem->item->edit
If have more than one store and form item have input select.
There is a problem: I select any value from any input select field for the US store view and save it. Then I switch to other store view (for example UK store) and select the same value for the same input select field and save it, this value is not saved. The problem lies in $objectInstance->load($data['entity_id']); method, that loads object with attributes which belong to one store view, regardless the store view this object is saved form.
In order to fix this issue the following should be done: in resource model change method protected function _getLoadAttributesSelect($object, $table)
Thank you for reporting this issue and providing a solution. I leave your comment here, so other people facing same problem, can fix it. This method is a magento core method, so we can expect that to be fixed in future releases. If not, I will add the fix within the code templates in next release.
Preconditions
Steps to reproduce
mg2-codegen template:generate crudEAV
magento/admin->content->gridItem->item->edit
If have more than one store and form item have input select.
There is a problem: I select any value from any input select field for the US store view and save it. Then I switch to other store view (for example UK store) and select the same value for the same input select field and save it, this value is not saved. The problem lies in $objectInstance->load($data['entity_id']); method, that loads object with attributes which belong to one store view, regardless the store view this object is saved form.
In order to fix this issue the following should be done: in resource model change method protected function _getLoadAttributesSelect($object, $table)
from that
The text was updated successfully, but these errors were encountered: