summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-05-07 18:39:08 -0700
committerIvan Kohler <ivan@freeside.biz>2014-05-07 18:39:08 -0700
commitba638765b1c8a27e8d1da8074b285a93f4a8241e (patch)
tree023f5018f1f965d5657ca39a35b7b8e31fc9b965
parentcd355e1366020deacea26c21e6953a73458fe79b (diff)
fix view of unlinked phone numbers, RT#29070
-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(@_);
}