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)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Mon, 15 May 2023 13:19:16 +0000 (13:19 +0000)
commit6af609ba9c661a677569f768d1550be5313b1e93
tree935bbc1e45274e4d3e07f422a529fd64103fe2a5
parentd3f1c687f7d3694be866c2260ac00a977f8c3dc5
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>
(cherry picked from commit 2ec95963f6079fa9ab27bec070518527953f885e)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/js/vue/fetch/erm-api-client.js