Bug 39346: Display all additional fields

getAll should call getAll, not get, or we lose the _per_page=-1
parameter.

Test plan:
Have more than 20 additional fields for agreements
Create and agreement:
=> Notice that with this patch, all the fields are displayed.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@openfifth.co.uk>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2025-03-17 11:46:50 +01:00 committed by Katrin Fischer
parent b1efa3d71d
commit fc2730d0f4
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 3 additions and 2 deletions

View File

@ -8,8 +8,9 @@ export class AdditionalFieldsAPIClient {
get additional_fields() {
return {
getAll: resource_type =>
this.httpClient.get({
endpoint: "?resource_type=" + resource_type,
this.httpClient.getAll({
endpoint: "",
params: { resource_type },
}),
};
}