Skip to content

Commit

Permalink
Bug 38089: (follow-up) More fixes for errors in original submission
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mrenvoize authored and kfischer committed Oct 11, 2024
1 parent 03e17cd commit 3ab343b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions circ/article-request-slip.pl
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
caller => 'article-request',
plain => 0,
style => $style,
id => 'ar_slip',
);

output_html_with_http_headers $cgi, $cookie, $template->output;
1 change: 1 addition & 0 deletions circ/hold-transfer-slip.pl
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
$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;

1 change: 1 addition & 0 deletions circ/transfer-slip.pl
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
caller => 'cud-transfer',
stylesheet => C4::Context->preference("SlipCSS"),
style => $style,
id => 'transfer_slip',
);

output_html_with_http_headers $input, $cookie, $template->output;
1 change: 1 addition & 0 deletions members/print_overdues.pl
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
plain => !$letter->{is_html},
borrowernumber => $borrowernumber,
style => $letter->{style},
id => 'overdues_slip',
);

output_html_with_http_headers $input, $cookie, $template->output;
3 changes: 3 additions & 0 deletions preservation/print_slip.pl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
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(
Expand All @@ -55,6 +56,8 @@
push @slips, {
content => $letter->{content},
is_html => $letter->{is_html},
style => $letter->{style},
id => ++$count,
};
}

Expand Down
1 change: 1 addition & 0 deletions recalls/recall_pickup_slip.pl
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
plain => !$is_html,
caller => 'recall',
style => $style,
id => 'recall_request_det',
);

output_html_with_http_headers $input, $cookie, $template->output;

0 comments on commit 3ab343b

Please sign in to comment.