Bug 8132: Fix failing tests

* Add missing html filter (xt/find-missing-filters.t)
* Fix AddReserve call

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2020-05-11 12:43:06 +02:00 committed by Martin Renvoize
parent 575878f0fb
commit 2b2c605ea7
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F
2 changed files with 2 additions and 2 deletions

View file

@ -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 %]
</td>
</tr>
[% END %]

View file

@ -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