-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Invalid argument supplied for foreach thrown in EAV code #21134
Comments
Hi @wojtekn. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @wojtekn do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
@magento-engcom-team give me 2.3-develop instance |
Hi @riconeitzel. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @riconeitzel, here is your Magento instance. |
✅ Confirmed by @engcom-backlog-nazar Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
@antbates1991 could you provide some insight on why it was closed? |
Hi @antbates1991 please explain reason why you close this issue, we don't do like that just closing issue without reason. |
Hi @wojtekn. Thank you for your report.
The fix will be available with the upcoming 2.3.2 release. |
@wojtekn This issue was closed because I referenced this issue in a PR for private repository that has been merged into the private repos develop branch. This behavour was unexpected and in my opinion kind of wrong. If it can be configured it should probably be turned off, although I'm not sure if it is an option. |
Preconditions
I spot the problem in M2 Commerce in RMA module, but as problem comes from M2 Open Source core and is clearly visible by code review, I'm adding it here.
Steps to reproduce
Expected result
RMA form is displayed
Actual result
Exception is thrown:
The problem looks as introduced in
\Magento\Eav\Model\Form::getAttributes
where not all class variables are initialized as array, but they are returned by method which suppose to return array:getAttributes
method initializes_attributes
and_userAttributes
variables as arrays but not_systemAttributes
and_allowedAttributes
.I will submit PR for this soon.
The text was updated successfully, but these errors were encountered: