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

Type cast #8077

Merged
merged 5 commits into from
Feb 25, 2017
Merged

Type cast #8077

merged 5 commits into from
Feb 25, 2017

Conversation

deriknel
Copy link
Contributor

@deriknel deriknel commented Jan 9, 2017

Bug Report: #8076

Typecast the $this->_getAllowedCurrencies() in the Allow.php and DefaultCurrency.php under Config/Currency to fix this error:

Something went wrong while saving this configuration: Warning: in_array() expects parameter 2 to be array, string given in /var/www/clean-m2-ee/vendor/magento/module-config/Model/Config/Backend/Currency/DefaultCurrency.php on line 30

Typecast the $this->_getAllowedCurrencies() to an array so that single string responses don't break the logical checks
Fixed: Something went wrong while saving this configuration: Warning: in_array() expects parameter 2 to be array, string given in /opt/vaimo/deploy/x7642/2017-01-09_13-38-36/htdocs/vendor/magento/module-config/Model/Config/Backend/Currency/DefaultCurrency.php on line 30
@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Jan 9, 2017

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@antonkril antonkril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_getAllowedCurrencies() should be fixed instead.

@deriknel
Copy link
Contributor Author

Thanks @antonkril for your feedback. I have updated the method as requested.

@maghamed maghamed self-assigned this Feb 2, 2017
@okorshenko okorshenko added this to the February 2017 milestone Feb 11, 2017
@maghamed maghamed self-requested a review February 13, 2017 14:21
@okorshenko okorshenko self-assigned this Feb 24, 2017
@mmansoor-magento mmansoor-magento merged commit 7139c7a into magento:develop Feb 25, 2017
@okorshenko
Copy link
Contributor

@deriknel thank you for your contribution and bug fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants