-
Notifications
You must be signed in to change notification settings - Fork 139
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
Update to Datahelper.php in 4.4.0 introduced new bug when values are arrays (e.g. category fields) #1041
Labels
Comments
We have got this happing to us now too. Same problem I think category fields. |
Can you
|
Cut a 4.4.1.1 release with this fixed based on feedback from #1067 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
The update done for v 4.4.0 to avoid stripping values of leading zeros introduced a new bug when the values being compared are arrays, which happens when comparing e.g. category fields. The comparison will then error out, as
mb_strlen()
is passed arrays, and only accepts strings.The reason is the checks with
mb_strlen()
that's being done in the new_compareSimpleValues()
method in DataHelper.php line 317.It needs to be adjusted so that it only checks the length if the values passed in are actually strings.
Steps to reproduce
Additional info
The text was updated successfully, but these errors were encountered: