Expanders 5.18.0
· One min read
Changes and improvements
GetProjection
The behaviour of the getProjection method in the element cruds has been changed to no longer return an empty object when the requested element could not be found.
Instead it now returns a CrudsError to allow for better error handling.
- The option
experimental.cruds.failOnProjectionNotFoundhas been removed, as it is now the default behaviour. - A legacy option
legacy.cruds.getProjection.emptyOnErrorwas added to revert to old behaviour. (Expires 2023-08-01)
This change shouldn't affect your application if errors were handled previously. If the application assumes the returned CrudsResult to be successful you either:
- Handle the error explicitly, by checking
CrudsResult.isError - Or by providing a default value, for example with
CrudsResult.getValueOrElseGet(Projection::new)
Frontend support for Null fieldoperator
Finders specifying the Null fieldoperator will now be shown as a checkbox in the knockout UI to enable or disable the null check when searching.
The label for this checkbox can be customized by overriding the $component.$dataElement.$field.null translation.
