Prior to this patch if you had CircConfirmParts enabled and you
attempted to checkin a deleted item then you would be met with a server
error.
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
# Block return if multi-part and confirm has not been received
my $needs_confirm =
C4::Context->preference("CircConfirmItemParts")
+ && $item
&& $item->materials
&& !$query->param('multiple_confirm');
- $template->param('multiple_confirmed' => 1) if $query->param('multiple_confirm');
+ $template->param( 'multiple_confirmed' => 1 )
+ if $query->param('multiple_confirm');
# do the return
( $returned, $messages, $issue, $borrower ) =