Bug 36392: (bug 34219 follow-up) Fix getAll for vendors - ERM

In commit f1078daf8f
   Bug 34219: Allow getAll to receive additional URL parameters

We needed to call getAll instead of get to fetch all the vendors

Test plan:
Have more than 20 vendors and create/edit an agreement.
Notice that the vendor list contains all the vendors

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Matthias Le Gac <matthias.le-gac@inlibro.com>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 17b134fcb9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit f353bd8d96)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2024-03-22 08:41:33 +01:00 committed by Lucas Gass
parent 32f18b34f6
commit 64542252b0

View file

@ -10,7 +10,7 @@ export class AcquisitionAPIClient extends HttpClient {
get vendors() {
return {
getAll: (query, params) =>
this.get({
this.getAll({
endpoint: "vendors",
query,
params,