Bug 36563: Dirty fix

Signed-off-by: Lucas Gass <lucas@bywatersolutions.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 492d7be2cc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2024-04-10 12:04:18 +02:00 committed by Fridolin Somers
parent d26306ed32
commit d8ca12b404
2 changed files with 5 additions and 2 deletions

View file

@ -130,7 +130,7 @@ if ( defined $format ) {
foreach my $p (
qw(homebranch holdingbranch location itype ccode issues datelastborrowed notforloan itemlost withdrawn damaged))
{
if ( my @q = $cgi->multi_param($p) ) {
if ( my @q = $cgi->multi_param($p . "[]") ) {
if ( $q[0] ne '' ) {
my $f = {
field => $p,

View file

@ -480,7 +480,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 );