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:
parent
062d24f101
commit
5dc1d9ba5e
|
|
@ -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 '';
|
||||
|
|
|
|||
Loading…
Reference in New Issue