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

(-)a/Koha/Patron.pm (-5 / +1 lines)
Lines 302-311 sub store { Link Here
302
                # their checkouts
302
                # their checkouts
303
                if( $self->privacy() == 2 && $self_from_storage->privacy() != 2 ){
303
                if( $self->privacy() == 2 && $self_from_storage->privacy() != 2 ){
304
                    try{
304
                    try{
305
                        my $schema = Koha::Database->new()->schema();
305
                        $self->old_checkouts->anonymize;
306
                        $schema->txn_do(
307
                            sub { $self->old_checkouts->anonymize; }
308
                        );
309
                    }
306
                    }
310
                    catch {
307
                    catch {
311
                        Koha::Exceptions::Patron::FailedAnonymizing->throw(
308
                        Koha::Exceptions::Patron::FailedAnonymizing->throw(
312
- 

Return to bug 33229