Bug 34456: (QA follow-up) perltidy code

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Kyle Hall 2023-10-30 13:31:47 -04:00 committed by Tomas Cohen Arazi
parent 38a9c08722
commit f380181fc4
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -990,11 +990,24 @@ elsif ($phase eq 'Export'){
unlink $ods_filepath;
}
elsif ( $format eq 'template' ) {
my $template_id = $input->param('template');
my $template_id = $input->param('template');
my $notice_template = Koha::Notice::Templates->find($template_id);
my $data = $sth->fetchall_arrayref({});
$content = process_tt( $notice_template->content, { data => $data, report_id => $report_id, for_download => 1 } );
$reportfilename = process_tt( $notice_template->title, { data => $data, report_id => $report_id } );
my $data = $sth->fetchall_arrayref( {} );
$content = process_tt(
$notice_template->content,
{
data => $data,
report_id => $report_id,
for_download => 1,
}
);
$reportfilename = process_tt(
$notice_template->title,
{
data => $data,
report_id => $report_id,
}
);
}
}
print $input->header(