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:
parent
d26306ed32
commit
d8ca12b404
2 changed files with 5 additions and 2 deletions
|
@ -130,7 +130,7 @@ if ( defined $format ) {
|
||||||
foreach my $p (
|
foreach my $p (
|
||||||
qw(homebranch holdingbranch location itype ccode issues datelastborrowed notforloan itemlost withdrawn damaged))
|
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 '' ) {
|
if ( $q[0] ne '' ) {
|
||||||
my $f = {
|
my $f = {
|
||||||
field => $p,
|
field => $p,
|
||||||
|
|
|
@ -480,7 +480,10 @@
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: function ( d ) {
|
data: function ( d ) {
|
||||||
for (i in params) {
|
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.format = 'json';
|
||||||
d.columns = JSON.stringify( d.columns );
|
d.columns = JSON.stringify( d.columns );
|
||||||
|
|
Loading…
Reference in a new issue