X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_location.pm;h=bcdb50c61b8c99af2cf9c36d2fb14e695b4d3eb7;hp=a99fa17d85a3856dde19772a789529c223225ad9;hb=f2c26594352302de80c2cd0cbba8b0e2abada6f7;hpb=cf0188f03b566ba9ae95294e211ea788ac9b050c diff --git a/FS/FS/cust_location.pm b/FS/FS/cust_location.pm index a99fa17d8..bcdb50c61 100644 --- a/FS/FS/cust_location.pm +++ b/FS/FS/cust_location.pm @@ -429,7 +429,7 @@ sub location_label { elsif ( $self->prospectnum ) { $cust_or_prospect = FS::prospect_main->by_key($self->prospectnum); } - my $agent = $conf->config('cust_location-agent_code', + my $agent = $conf->config('cust_main-custnum-display_prefix', $cust_or_prospect->agentnum) || $cust_or_prospect->agent->agent; # else this location is invalid