-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Do an empty check instead of isset check on image removed #22910
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
Do an empty check instead of isset check on image removed #22910
Conversation
Hi @arnoudhgz. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@arnoudhgz did you manage to figure out stable steps to reproduce?
In some cases the 'removed' tag on the image is already set to an empty string in the data which will be loaded. Therefore the isset check fails which clears the image roles. On all other cases where this 'removed' tag is being validated with an empty or !empty. Therefor it seems safe to apply this here also.
4bbeccd
to
b65c12e
Compare
Hi @sidolov, thank you for the review. |
✔️ QA passed |
Hi @arnoudhgz, thank you for your contribution! |
In some cases the 'removed' tag on the image is already set to an empty
string in the data which will be loaded. Therefore the isset check fails
which clears the image roles.
On all other cases where this 'removed' tag is being validated with an
empty or !empty. Therefor it seems safe to apply this here also.
Manual testing scenarios (*)
Contribution checklist (*)