From ba638765b1c8a27e8d1da8074b285a93f4a8241e Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 7 May 2014 18:39:08 -0700 Subject: [PATCH] fix view of unlinked phone numbers, RT#29070 --- FS/FS/location_Mixin.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FS/FS/location_Mixin.pm b/FS/FS/location_Mixin.pm index d45738682..d32b4a37c 100644 --- a/FS/FS/location_Mixin.pm +++ b/FS/FS/location_Mixin.pm @@ -36,7 +36,7 @@ Returns the label of the location object (see L). sub location_label { my $self = shift; - my $object = $self->cust_location_or_main; + my $object = $self->cust_location_or_main or return ''; $object->location_label(@_); } -- 2.11.0