diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm index a55cd17743..1d8b195b3c 100644 --- a/C4/Reports/Guided.pm +++ b/C4/Reports/Guided.pm @@ -974,7 +974,7 @@ sub GetParametersFromSQL { for ( my $i = 0; $i < ($#split/2) ; $i++ ) { my ($name,$authval) = split(/\|/,$split[$i*2+1]); - $authval =~ s/\:all$// if $authval; + $authval =~ s/\:all$|\:in$// if $authval; push @sql_parameters, { 'name' => $name, 'authval' => $authval }; } diff --git a/Koha/Report.pm b/Koha/Report.pm index 55daece836..8c9bd3b523 100644 --- a/Koha/Report.pm +++ b/Koha/Report.pm @@ -169,7 +169,7 @@ sub prep_report { # } # ) if $quoted; #} - unless ( $split[ $i * 2 + 1 ] =~ /\|\s*list\s*$/ && $quoted ) { + unless ( $split[ $i * 2 + 1 ] =~ /\|\s*list\s*$|\s*\:in\s*$/ && $quoted ) { $quoted = C4::Context->dbh->quote($quoted); } else { diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index 157c538b50..f79005ee58 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -849,7 +849,7 @@ Edit SQL [% ELSE # IF ( auth_val_error ) %] -