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

Throw exception when attribute doesn't exitst #7758

Merged
merged 2 commits into from
Jun 13, 2017
Merged

Throw exception when attribute doesn't exitst #7758

merged 2 commits into from
Jun 13, 2017

Conversation

AydinHassan
Copy link
Contributor

@AydinHassan AydinHassan commented Dec 12, 2016

When updating an attribute that doesn't exist we don't get a very good error message:

For example:

Notice: Undefined index: entity_type_id in

This patch throws an exception when an attributes ID could not be found with a more informative exception.

I could not see any tests for this class so I didn't add any - could add some with some pointers.

@dmanners dmanners self-assigned this Mar 6, 2017
@dmanners
Copy link
Contributor

dmanners commented Mar 6, 2017

@AydinHassan Thank you for your PR. I am going to have a look at this and will let you know if I need any more information.

@vrann vrann self-assigned this Mar 13, 2017
@vrann vrann added this to the March 2017 milestone Mar 13, 2017
@vrann vrann assigned dmanners and unassigned dmanners and vrann Mar 24, 2017
@okorshenko okorshenko modified the milestones: March 2017, April 2017 Apr 2, 2017
@okorshenko okorshenko modified the milestones: April 2017, May 2017 May 9, 2017
@okorshenko okorshenko modified the milestones: May 2017, June 2017 Jun 1, 2017
@okorshenko okorshenko self-assigned this Jun 13, 2017
@magento-team magento-team merged commit 328b94e into magento:develop Jun 13, 2017
@AydinHassan AydinHassan deleted the exception-when-attribute-does-not-exist branch June 14, 2017 07:57
magento-devops-reposync-svc pushed a commit that referenced this pull request Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants