From 2b2c605ea7ed0cc907264d82067172fa401c6d75 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 11 May 2020 12:43:06 +0200 Subject: [PATCH] Bug 8132: Fix failing tests * Add missing html filter (xt/find-missing-filters.t) * Fix AddReserve call Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt | 2 +- t/db_dependent/Koha/Item.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5