Bug 7679: Fix two SQL queries when using patron attributes
[koha.git] / reports / manager.pl
index e37da4f..e9ec30e 100755 (executable)
@@ -30,7 +30,7 @@ my $input = new CGI;
 my $report_name=$input->param("report_name");
 my $do_it=$input->param('do_it');
 my $fullreportname = "reports/".$report_name.".tt";
-my @values = $input->param("value");
+my @values = $input->multi_param("value");
 my ($template, $borrowernumber, $cookie)
        = get_template_and_user({template_name => $fullreportname,
                                query => $input,
@@ -44,7 +44,7 @@ $template->param(do_it => $do_it,
                );
 my $cgidir = C4::Context->config('intranetdir')."/cgi-bin/reports/";
 unless (-r $cgidir and -d $cgidir) {
-       $cgidir = C4::Context->intranetdir."/reports/";
+    $cgidir = C4::Context->config('intranetdir')."/reports/";
 } 
 my $plugin = $cgidir.$report_name.".plugin";
 require $plugin;