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

(-)a/Koha/Old/Checkouts.pm (-1 / +5 lines)
Lines 101-106 sub anonymize { Link Here
101
    Koha::Exceptions::SysPref::NotSet->throw( syspref => 'AnonymousPatron' )
101
    Koha::Exceptions::SysPref::NotSet->throw( syspref => 'AnonymousPatron' )
102
        unless $anonymous_id;
102
        unless $anonymous_id;
103
103
104
    while ( my $checkout = $self->next ) {
105
        my $self_renewals = $checkout->renewals->search( { renewer_id => $checkout->borrowernumber } );
106
        $self_renewals->update( { renewer_id => $anonymous_id } );
107
    }
108
104
    return $self->update( { borrowernumber => $anonymous_id }, { no_triggers => 1 } );
109
    return $self->update( { borrowernumber => $anonymous_id }, { no_triggers => 1 } );
105
}
110
}
106
111
107
- 

Return to bug 33285