projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add billing address fields to RT ticket search, #19154
[freeside.git]
/
FS
/
FS
/
cust_location.pm
diff --git
a/FS/FS/cust_location.pm
b/FS/FS/cust_location.pm
index
09baff3
..
74b1bd1
100644
(file)
--- a/
FS/FS/cust_location.pm
+++ b/
FS/FS/cust_location.pm
@@
-641,6
+641,11
@@
Prospect object (see L<FS::prospect_main>)
String used to join location elements
String used to join location elements
+=item no_prefix
+
+Don't label the default service location as "Default service location".
+May become the default at some point.
+
=back
=cut
=back
=cut
@@
-650,6
+655,7
@@
sub location_label {
my $prefix = $self->label_prefix;
$prefix .= ($opt{join_string} || ': ') if $prefix;
my $prefix = $self->label_prefix;
$prefix .= ($opt{join_string} || ': ') if $prefix;
+ $prefix = '' if $opt{'no_prefix'};
$prefix . $self->SUPER::location_label(%opt);
}
$prefix . $self->SUPER::location_label(%opt);
}