fix view of unlinked phone numbers, RT#29070
authorIvan Kohler <ivan@freeside.biz>
Thu, 8 May 2014 01:39:08 +0000 (18:39 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 8 May 2014 01:39:08 +0000 (18:39 -0700)
FS/FS/location_Mixin.pm

index d457386..d32b4a3 100644 (file)
@@ -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(@_);
 }