From 5d2b33bcac3f273ee08c1d1b5f2e6f0b922a99b3 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 24 Oct 2019 14:41:19 +0100 Subject: [PATCH] Bug 22706: (QA follow-up) Restore location of logaction Signed-off-by: Martin Renvoize --- Koha/Patron.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 4b8e1356f0..92580725db 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -228,9 +228,6 @@ sub store { # Make a copy of the plain text password for later use $self->plain_text_password( $self->password ); - logaction( "MEMBERS", "CREATE", $self->borrowernumber, "" ) - if C4::Context->preference("BorrowersLog"); - if ( C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins") ) { # Call any check_password plugins my @plugins = Koha::Plugins->new()->GetPlugins({ @@ -265,6 +262,8 @@ sub store { $self->add_enrolment_fee_if_needed(0); + logaction( "MEMBERS", "CREATE", $self->borrowernumber, "" ) + if C4::Context->preference("BorrowersLog"); } else { #ModMember -- 2.39.5