Bug 33284: Set renewer_id appropriately for anonymize settings
This patch adds a trigger into the anonymize function of Koha::Old::Checkout such that we pass along the anonymize action to the renewals record. Signed-off-by: Andrew Fuerste-Henry <andrewfh@dubcolib.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
d82abae1da
commit
e6d0df1156
|
|
@ -136,6 +136,9 @@ sub anonymize {
|
|||
Koha::Exceptions::SysPref::NotSet->throw( syspref => 'AnonymousPatron' )
|
||||
unless $anonymous_id;
|
||||
|
||||
my $self_renewals = $self->renewals->search( { renewer_id => $self->borrowernumber } );
|
||||
$self_renewals->update( { renewer_id => $anonymous_id } );
|
||||
|
||||
return $self->update( { borrowernumber => $anonymous_id } );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue