From e598fa8f487132988cab480c10b3ebc3a588a86e Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 23 Oct 2023 21:42:01 +0000 Subject: [PATCH] Bug 34136: (QA follow-up) Perltidy Signed-off-by: Katrin Fischer --- reports/guided_reports.pl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl index e8c8941d46..6212fdae03 100755 --- a/reports/guided_reports.pl +++ b/reports/guided_reports.pl @@ -81,7 +81,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( my $session_id = $input->cookie('CGISESSID'); my $session = $session_id ? get_session($session_id) : undef; -$template->param( templates => Koha::Notice::Templates->search({ module => 'report' }) ); +$template->param( templates => Koha::Notice::Templates->search( { module => 'report' } ) ); my $filter; if ( $input->param("filter_set") or $input->param('clear_filters') ) { @@ -670,14 +670,15 @@ elsif ($phase eq 'Share'){ } elsif ($phase eq 'Run this report'){ # execute a saved report - my $limit = $input->param('limit') || 20; - my $offset = 0; - my $report_id = $input->param('reports'); - my @sql_params = $input->multi_param('sql_params'); - my @param_names = $input->multi_param('param_name'); - my $template_id = $input->param('template'); + my $limit = $input->param('limit') || 20; + my $offset = 0; + my $report_id = $input->param('reports'); + my @sql_params = $input->multi_param('sql_params'); + my @param_names = $input->multi_param('param_name'); + my $template_id = $input->param('template'); my $want_full_chart = $input->param('want_full_chart') || 0; + # offset algorithm if ($input->param('page')) { $offset = ($input->param('page') - 1) * $limit; -- 2.39.5