]> git.koha-community.org Git - koha.git/commit
Bug 35756: Correctly serialize patron's data in patron search popup/modal
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 10 Jan 2024 08:36:43 +0000 (09:36 +0100)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 2 Feb 2024 16:20:58 +0000 (16:20 +0000)
commitdde9176e2c61e952b0596c6152808ac219874637
tree1794e38fc9ebbeceb39d78f5b69555d487e2b937
parentddf41c2dba72d9e8f9c26f49fc820a5a24c839a6
Bug 35756: Correctly serialize patron's data in patron search popup/modal

We are incorrectly using encodeURIComponent in patron-search.inc.
When a new patron is selected, the info message is showing "Patron %s is already in the list"
or "Patron %s added". If the patron has space in their name, they will be substituted with %20.

We are using JSON for select, we can reuse it for add.

Test plan:
Have a patron with spaces in their name
Add users to a fund
Notice that the name is correctly displayed.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 6779e64d955f6e90e05eba19fd4d7d3606ae15ec)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 65460128f13334ce73652682b740d8312f3bc833)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc