Fix missed part from customer display name change

This commit is contained in:
Tom Bloor 2017-05-08 20:54:50 +01:00
parent 233d5d3371
commit 6d86389768

View file

@ -138,7 +138,7 @@ sub name {
my $self = shift; my $self = shift;
if ( defined $self->customer_id ) { if ( defined $self->customer_id ) {
return $self->customer->name; return $self->customer->display_name;
} elsif ( defined $self->organisation_id ) { } elsif ( defined $self->organisation_id ) {
return $self->organisation->name; return $self->organisation->name;
} else { } else {