diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt index f15f213398..eb5ddd82c6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt @@ -258,7 +258,7 @@ [% CASE "last_item_for_hold" %][% SET cannot_delete_reason = t("Last item for bibliographic record wich biblio-level hold on it") %] [% CASE %][% SET cannot_delete_reason = t("Unknown reason") _ '(' _ can_be_deleted _ ')' %] [% END %] - [% cannot_delete_reason %] + [% cannot_delete_reason | html %] [% END %] diff --git a/t/db_dependent/Koha/Item.t b/t/db_dependent/Koha/Item.t index 517126130c..581c96d776 100644 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -431,7 +431,7 @@ subtest 'deletion' => sub { } { # last_item_for_hold - C4::Reserves::AddReserve($patron->branchcode, $patron->borrowernumber, $item->biblionumber ); + C4::Reserves::AddReserve({ branchcode => $patron->branchcode, borrowernumber => $patron->borrowernumber, biblionumber => $item->biblionumber }); is( $item->safe_to_delete, 'last_item_for_hold', 'Item cannot be deleted if a biblio-level is placed on the biblio and there is only 1 item attached to the biblio' ); # With another item attached to the biblio, the item can be deleted