Bug 38089: (follow-up) More fixes for errors in original submission

The original submission missed a number of slip types that are print on
demand without queueing.

These all need an "id" passing in to the template and in some cases we
were also missing passing in the new style parameter too (preservation)

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 3ab343b67e)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2024-10-07 15:26:35 +01:00 committed by Lucas Gass
parent 160fd0724e
commit 41fad6a308
6 changed files with 8 additions and 0 deletions

View File

@ -81,6 +81,7 @@ $template->param(
caller => 'article-request',
plain => 0,
style => $style,
id => 'ar_slip',
);
output_html_with_http_headers $cgi, $cookie, $template->output;

View File

@ -54,6 +54,7 @@ $template->param( slip => $slip ) if ($slip);
$template->param( caller => 'hold-transfer' );
$template->param( plain => !$is_html );
$template->param( style => $style );
$template->param( id => 'reserve_slip' );
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -60,6 +60,7 @@ $template->param(
caller => 'cud-transfer',
stylesheet => C4::Context->preference("SlipCSS"),
style => $style,
id => 'transfer_slip',
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -68,6 +68,7 @@ $template->param(
plain => !$letter->{is_html},
borrowernumber => $borrowernumber,
style => $letter->{style},
id => 'overdues_slip',
);
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -40,6 +40,7 @@ my $logged_in_user = Koha::Patrons->find($loggedinuser);
my $branch = C4::Context->userenv->{'branch'};
my @slips;
my $count = 0;
for my $train_item_id (@train_item_ids) {
my $train_item = Koha::Preservation::Train::Items->find($train_item_id);
my $letter = C4::Letters::GetPreparedLetter(
@ -55,6 +56,8 @@ for my $train_item_id (@train_item_ids) {
push @slips, {
content => $letter->{content},
is_html => $letter->{is_html},
style => $letter->{style},
id => ++$count,
};
}

View File

@ -70,6 +70,7 @@ $template->param(
plain => !$is_html,
caller => 'recall',
style => $style,
id => 'recall_request_det',
);
output_html_with_http_headers $input, $cookie, $template->output;