diff --git a/lib/Pear/LocalLoop/Schema/Result/User.pm b/lib/Pear/LocalLoop/Schema/Result/User.pm index 6974cb4..259a03b 100644 --- a/lib/Pear/LocalLoop/Schema/Result/User.pm +++ b/lib/Pear/LocalLoop/Schema/Result/User.pm @@ -138,7 +138,7 @@ sub name { my $self = shift; if ( defined $self->customer_id ) { - return $self->customer->name; + return $self->customer->display_name; } elsif ( defined $self->organisation_id ) { return $self->organisation->name; } else {