Skip to content
Snippets Groups Projects
Commit 5cf0c672 authored by Mathieu.Vonlanthen's avatar Mathieu.Vonlanthen
Browse files

SubResourceController: allow using sort object

parent ab2f5ba4
No related branches found
No related tags found
No related merge requests found
......@@ -48,11 +48,6 @@ public abstract class SubResourceController<T extends Resource<T> & SubResourceC
@GetMapping
public HttpEntity<Collection<V>> list(@PathVariable String parentid, @ModelAttribute V filterItem,
Pageable pageable) {
if (pageable.getSort().isSorted()) {
throw new UnsupportedOperationException(
messageService.get("error.sort.unsupported", new Object[] {
getMainResourceClass().toString(), getSubResourceClass().toString() }));
}
this.checkIfResourceExists(parentid);
Page<V> list;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment