Currency Setup in admin throws in_array error when a single value is selected #8076
Labels
bug report
Component: Tax
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Progress: needs update
Preconditions
Steps to reproduce
Expected result
Actual result
This is because the $this->_getAllowedCurrencies() method returns a string for single values and not an array as expected. Typecasting that to an array would fix this:
if (!in_array($this->getValue(), (array)$this->_getAllowedCurrencies())) {
Or alternatively update the methods to always return arrays.
The text was updated successfully, but these errors were encountered: