View | Details | Raw Unified | Return to bug 8132
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-del.tt (-1 / +1 lines)
Lines 258-264 Link Here
258
                    [% CASE "last_item_for_hold" %][% SET cannot_delete_reason = t("Last item for bibliographic record wich biblio-level hold on it") %]
258
                    [% CASE "last_item_for_hold" %][% SET cannot_delete_reason = t("Last item for bibliographic record wich biblio-level hold on it") %]
259
                    [% CASE %][% SET cannot_delete_reason = t("Unknown reason") _ '(' _ can_be_deleted _ ')' %]
259
                    [% CASE %][% SET cannot_delete_reason = t("Unknown reason") _ '(' _ can_be_deleted _ ')' %]
260
                    [% END %]
260
                    [% END %]
261
                    [% cannot_delete_reason %]
261
                    [% cannot_delete_reason | html %]
262
                </td>
262
                </td>
263
            </tr>
263
            </tr>
264
            [% END %]
264
            [% END %]
(-)a/t/db_dependent/Koha/Item.t (-2 / +1 lines)
Lines 431-437 subtest 'deletion' => sub { Link Here
431
    }
431
    }
432
432
433
    { # last_item_for_hold
433
    { # last_item_for_hold
434
        C4::Reserves::AddReserve($patron->branchcode, $patron->borrowernumber, $item->biblionumber );
434
        C4::Reserves::AddReserve({ branchcode => $patron->branchcode, borrowernumber => $patron->borrowernumber, biblionumber => $item->biblionumber });
435
        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' );
435
        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' );
436
436
437
        # With another item attached to the biblio, the item can be deleted
437
        # With another item attached to the biblio, the item can be deleted
438
- 

Return to bug 8132