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

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

Return to bug 33284