diff --git a/Koha/REST/Plugin/Objects.pm b/Koha/REST/Plugin/Objects.pm index 3653f914ef..3d314a784e 100644 --- a/Koha/REST/Plugin/Objects.pm +++ b/Koha/REST/Plugin/Objects.pm @@ -60,7 +60,8 @@ sub register { $c->dbic_merge_sorting( { attributes => $attributes, - params => $reserved_params + params => $reserved_params, + to_model => $to_model } );