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:
parent
575878f0fb
commit
2b2c605ea7
2 changed files with 2 additions and 2 deletions
|
@ -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 %]
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue