From 311f7a3af37ff04ff38b774a94c639a00e9a5393 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 25a790695a..96de8776f4 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.20.1