sub anonymize {
my ( $self, $params ) = @_;
my $anonymous_id = C4::Context->preference('AnonymousPatron') || undef;
my $anonymous_id = C4::Context->preference('AnonymousPatron');
Koha::Exceptions::SysPref::NotSet->throw( syspref => 'AnonymousPatron' )
unless $anonymous_id;
return $self->update( { borrowernumber => $anonymous_id }, { no_triggers => 1 } );
}
use base qw(Koha::Hold);
use C4::Context;
use Koha::Exceptions::SysPref;
=head1 NAME
my ($self) = @_;
return $self->update( { borrowernumber => $anonymous_id } );
-