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

(-)a/misc/cronjobs/delete_items.pl (-1 / +1 lines)
Lines 58-64 $GLOBAL->{sth}->{target_items}->execute(); Link Here
58
DELITEM: while ( my $item = $GLOBAL->{sth}->{target_items}->fetchrow_hashref() ) {
58
DELITEM: while ( my $item = $GLOBAL->{sth}->{target_items}->fetchrow_hashref() ) {
59
59
60
    my $status = C4::Items::ItemSafeToDelete( $item->{itemnumber}, $item->{biblionumber} );
60
    my $status = C4::Items::ItemSafeToDelete( $item->{itemnumber}, $item->{biblionumber} );
61
    if( $status == 1 )  {
61
    if( $status eq '1' )  {
62
        C4::Items::DelItemCheck( $item->{itemnumber}, $item->{biblionumber} );
62
        C4::Items::DelItemCheck( $item->{itemnumber}, $item->{biblionumber} );
63
        verbose "Deleting '$item->{itemnumber}'";
63
        verbose "Deleting '$item->{itemnumber}'";
64
    } else {
64
    } else {
(-)a/t/db_dependent/Circulation/IsItemIssued.t (-1 / +2 lines)
Lines 58-63 is( Link Here
58
    'item that is not on loan can be deleted',
58
    'item that is not on loan can be deleted',
59
);
59
);
60
60
61
$schema->storage->txn_rollback;
62
61
# C4::Context->userenv
63
# C4::Context->userenv
62
sub Mock_userenv {
64
sub Mock_userenv {
63
    return { branch => $library->{branchcode} };
65
    return { branch => $library->{branchcode} };
64
- 

Return to bug 14504