From 6d86389768264064ea165e307963ce487a0ddf6a Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Mon, 8 May 2017 20:54:50 +0100 Subject: [PATCH] Fix missed part from customer display name change --- lib/Pear/LocalLoop/Schema/Result/User.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {