From 3884ed2b25108b1f2725755873e52550b0263f13 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 10 Apr 2024 12:04:18 +0200 Subject: [PATCH] Bug 36563: Dirty fix Signed-off-by: Lucas Gass Signed-off-by: Pedro Amorim Signed-off-by: Katrin Fischer (cherry picked from commit 492d7be2ccba07f47771184fd5cc903383abb63b) Signed-off-by: Fridolin Somers (cherry picked from commit d8ca12b404da1833ed7c8ae51ab69af6086705a6) Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt index 0ae9bd5fe7..89006963d5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt @@ -461,7 +461,10 @@ type: 'POST', data: function ( d ) { for (i in params) { - d[params[i].name] = params[i].value; + if (! d.hasOwnProperty(params[i].name) ) { + d[params[i].name] = []; + } + d[params[i].name].push(params[i].value); } d.format = 'json'; d.columns = JSON.stringify( d.columns ); -- 2.39.5