From 5dc1d9ba5eef27bee647299d66e44ae1d375b5b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Cohen=20Arazi?= Date: Wed, 25 Mar 2026 11:16:31 +0100 Subject: [PATCH] Bug 40136: (follow-up) Fix wrong `_result_source` call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Tomás Cohen Arazi Signed-off-by: Martin Renvoize --- Koha/Patron.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 7233b24f13..cc8a3615ae 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -3759,7 +3759,7 @@ sub _unblessed_for_log { # Use get_column rather than unblessed to avoid DBIC column inflation: # date/datetime values are returned as raw ISO strings directly, without # constructing DateTime objects that we would only immediately stringify. - my %data = map { $_ => $self->get_column($_) } $self->result_source->columns; + my %data = map { $_ => $self->get_column($_) } $self->{_result}->result_source->columns; delete @data{qw(password lastseen updated_on)}; for my $key ( keys %data ) { delete $data{$key} unless defined $data{$key} && $data{$key} ne '';