summaryrefslogtreecommitdiff
path: root/FS
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-05-07 18:39:09 -0700
committerIvan Kohler <ivan@freeside.biz>2014-05-07 18:39:09 -0700
commitabae41e9c876ad16fb8b82049583e960daa641ed (patch)
treeb54440687f3ef9f7f734a76962ec11d0a9bb59d3 /FS
parentdd2048e8605404a4a55167555330473a6ce26437 (diff)
fix view of unlinked phone numbers, RT#29070
Diffstat (limited to 'FS')
-rw-r--r--FS/FS/location_Mixin.pm2
1 files changed, 1 insertions, 1 deletions
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<FS::cust_location>).
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(@_);
}