Bug 33623: Encode URL params for getAll
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 27 Apr 2023 06:43:26 +0000 (08:43 +0200)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 May 2023 12:13:20 +0000 (09:13 -0300)
commit2ec95963f6079fa9ab27bec070518527953f885e
tree7a5bc682918b2f271f889e21dea03d3978cbe1f2
parent744ac4825ba9a346e2ad1c8e413d3d9423658512
Bug 33623: Encode URL params for getAll

We must encode properly URL parameters when building the REST API routes

Can be tested easily using
const client = APIClient.erm
client.licenses.getAll({ "me.name:%ff%" })

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/fetch/erm-api-client.js