From 9ad4aec4cbdb5970e2319c90cd5f45f4f1e87828 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 19 Feb 2019 12:37:14 +0000 Subject: [PATCH] Bug 3820: (follow-up) Address lastseen log spamming Signed-off-by: Martin Renvoize --- Koha/Patron.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index c2b4738a34..cea2f8eea1 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -260,7 +260,9 @@ sub store { my $info; my $from_storage = $self_from_storage->unblessed; my $from_object = $self->unblessed; + my @skip_fields = (qw/lastseen/); for my $key ( keys %{$from_storage} ) { + next if any { /$key/ } @skip_fields; if ( ( !defined( $from_storage->{$key} ) @@ -294,11 +296,6 @@ sub store { ) ); } - else { - logaction( "MEMBERS", "MODIFY", $self->borrowernumber, - "NON-STANDARD FIELD CHANGED" ); - - } } # Final store -- 2.20.1