Bug 40136: (follow-up) Fix wrong `_result_source` call

Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
This commit is contained in:
Tomás Cohen Arazi 2026-03-25 11:16:31 +01:00 committed by Martin Renvoize
parent 062d24f101
commit 5dc1d9ba5e
No known key found for this signature in database
GPG Key ID: 2D86E0EAEC83711B
1 changed files with 1 additions and 1 deletions

View File

@ -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 '';