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>
(cherry picked from commit e6d0df1156)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
9054bb131e
commit
05f18896f7
|
|
@ -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