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

(-)a/Koha/Old/Checkout.pm (-1 / +3 lines)
Lines 136-141 sub anonymize { Link Here
136
    Koha::Exceptions::SysPref::NotSet->throw( syspref => 'AnonymousPatron' )
136
    Koha::Exceptions::SysPref::NotSet->throw( syspref => 'AnonymousPatron' )
137
        unless $anonymous_id;
137
        unless $anonymous_id;
138
138
139
    my $self_renewals = $self->renewals->search( { renewer_id => $self->borrowernumber } );
140
    $self_renewals->update( { renewer_id => $anonymous_id } );
141
139
    return $self->update( { borrowernumber => $anonymous_id } );
142
    return $self->update( { borrowernumber => $anonymous_id } );
140
}
143
}
141
144
142
- 

Return to bug 33284