Lines 81-87
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
81 |
my $session_id = $input->cookie('CGISESSID'); |
81 |
my $session_id = $input->cookie('CGISESSID'); |
82 |
my $session = $session_id ? get_session($session_id) : undef; |
82 |
my $session = $session_id ? get_session($session_id) : undef; |
83 |
|
83 |
|
84 |
$template->param( templates => Koha::Notice::Templates->search({ module => 'report' }) ); |
84 |
$template->param( templates => Koha::Notice::Templates->search( { module => 'report' } ) ); |
85 |
|
85 |
|
86 |
my $filter; |
86 |
my $filter; |
87 |
if ( $input->param("filter_set") or $input->param('clear_filters') ) { |
87 |
if ( $input->param("filter_set") or $input->param('clear_filters') ) { |
Lines 670-683
elsif ($phase eq 'Share'){
Link Here
|
670 |
} |
670 |
} |
671 |
elsif ($phase eq 'Run this report'){ |
671 |
elsif ($phase eq 'Run this report'){ |
672 |
# execute a saved report |
672 |
# execute a saved report |
673 |
my $limit = $input->param('limit') || 20; |
673 |
my $limit = $input->param('limit') || 20; |
674 |
my $offset = 0; |
674 |
my $offset = 0; |
675 |
my $report_id = $input->param('reports'); |
675 |
my $report_id = $input->param('reports'); |
676 |
my @sql_params = $input->multi_param('sql_params'); |
676 |
my @sql_params = $input->multi_param('sql_params'); |
677 |
my @param_names = $input->multi_param('param_name'); |
677 |
my @param_names = $input->multi_param('param_name'); |
678 |
my $template_id = $input->param('template'); |
678 |
my $template_id = $input->param('template'); |
679 |
my $want_full_chart = $input->param('want_full_chart') || 0; |
679 |
my $want_full_chart = $input->param('want_full_chart') || 0; |
680 |
|
680 |
|
|
|
681 |
|
681 |
# offset algorithm |
682 |
# offset algorithm |
682 |
if ($input->param('page')) { |
683 |
if ($input->param('page')) { |
683 |
$offset = ($input->param('page') - 1) * $limit; |
684 |
$offset = ($input->param('page') - 1) * $limit; |
684 |
- |
|
|