Skip to content

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