Skip to content

v2.2.2: NULL in setValue for INVALID_VALUE_MODE_EMPTY

Compare
Choose a tag to compare
@michallohnisky michallohnisky released this 04 Aug 09:45
· 20 commits to master since this release
Problem: When INVALID_VALUE_MODE_EMPTY is configured for AjaxSelect and selected value is invalid and then set to NULL, an error was thrown in 'count($value)'.
Solution: check if $value is array before the count so the NULL value is evaluated as FALSE and count is never checked.