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

EAV Config Cache revert return empty attribute model #3074

Merged
merged 14 commits into from
Mar 9, 2023
Merged

EAV Config Cache revert return empty attribute model #3074

merged 14 commits into from
Mar 9, 2023

Conversation

davidhiendl
Copy link
Contributor

Changes made in #2993 changed the behaviour of getAttribute to return false instead of an empty model. While this might be a more desirable return type it breaks some behavior that relies on it. This PR reverts that change and returns a fresh empty model when getAttribute("non_existent_code") is called.

Related Pull Requests

#2993

Fixed Issues (if relevant)

  1. EAV Config Cache Bug: getAttribute() returns false at creating new attribute #3057
  2. Error Invalid method Mage_Customer_Model_Attribute::_getDefaultSourceModel #3055 (underlying cause listed in EAV Config Cache Bug: getAttribute() returns false at creating new attribute #3057)

@github-actions github-actions bot added the Component: Eav Relates to Mage_Eav label Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Eav Relates to Mage_Eav
Projects
None yet
3 participants