You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #10925 a new ArrayList::filterOrExclude() method was implemented which uses some null coalescing operators to turn null values (both in the objects contained in the list and the values to be passed to the SearchFilter) to empty strings. This is being done to preserve backwards compatibility with the old == comparison that arraylist filtering used to do.
From CMS 6, that backwards compatibility is no longer needed. It would be more appropriate to use strict comparisons for null values, to match up with how DataList and EagerLoadedList treat null value comparisons.
The null coalescing operators are removed from ArrayList::filterOrExclude() so that null values contained in the list and null values passed to the various filter methods are passed through to the searchfilters as null.
In #10925 a new
ArrayList::filterOrExclude()
method was implemented which uses some null coalescing operators to turn null values (both in the objects contained in the list and the values to be passed to theSearchFilter
) to empty strings. This is being done to preserve backwards compatibility with the old==
comparison that arraylist filtering used to do.From CMS 6, that backwards compatibility is no longer needed. It would be more appropriate to use strict comparisons for null values, to match up with how
DataList
andEagerLoadedList
treat null value comparisons.Related issues
Acceptance criteria
ArrayList::filterOrExclude()
so that null values contained in the list and null values passed to the various filter methods are passed through to the searchfilters asnull
.Notes
The text was updated successfully, but these errors were encountered: