View | Details | Raw Unified | Return to bug 34456
Collapse All | Expand All

(-)a/reports/guided_reports.pl (-5 / +17 lines)
Lines 990-1000 elsif ($phase eq 'Export'){ Link Here
990
                unlink $ods_filepath;
990
                unlink $ods_filepath;
991
            }
991
            }
992
            elsif ( $format eq 'template' ) {
992
            elsif ( $format eq 'template' ) {
993
                my $template_id = $input->param('template');
993
                my $template_id     = $input->param('template');
994
                my $notice_template = Koha::Notice::Templates->find($template_id);
994
                my $notice_template = Koha::Notice::Templates->find($template_id);
995
                my $data = $sth->fetchall_arrayref({});
995
                my $data            = $sth->fetchall_arrayref( {} );
996
                $content = process_tt( $notice_template->content, { data => $data, report_id => $report_id, for_download => 1 } );
996
                $content = process_tt(
997
                $reportfilename = process_tt( $notice_template->title, { data => $data, report_id => $report_id } );
997
                    $notice_template->content,
998
                    {
999
                        data         => $data,
1000
                        report_id    => $report_id,
1001
                        for_download => 1,
1002
                    }
1003
                );
1004
                $reportfilename = process_tt(
1005
                    $notice_template->title,
1006
                    {
1007
                        data      => $data,
1008
                        report_id => $report_id,
1009
                    }
1010
                );
998
            }
1011
            }
999
        }
1012
        }
1000
        print $input->header(
1013
        print $input->header(
1001
- 

Return to bug 34456