X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Flocation.cgi;h=fab61dd010885bdf541c898a621eb981dfa57826;hb=b6c5d35cc215c18d3fb1d9aeb0239a610eb68c32;hp=82ad636c404a0c568fd19b330a05be7b3014f7c9;hpb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;p=freeside.git diff --git a/httemplate/misc/location.cgi b/httemplate/misc/location.cgi index 82ad636c4..fab61dd01 100644 --- a/httemplate/misc/location.cgi +++ b/httemplate/misc/location.cgi @@ -1,4 +1,4 @@ -<% objToJson(\%hash) %> +<% encode_json(\%hash) %>\ <%init> my $locationnum = $cgi->param('arg'); @@ -24,7 +24,9 @@ my $cust_location = qsearchs({ my %hash = (); %hash = map { $_ => $cust_location->$_() } - qw( address1 address2 city county state zip country ) + ( FS::cust_main->location_fields, + qw( location_kind location_type location_number ) + ) if $cust_location;