From: ivan Date: Fri, 9 May 2008 06:34:58 +0000 (+0000) Subject: JSON 1.0 (on deb 4.0) doesn't have to_json yet X-Git-Tag: root_of_webpay_support~660 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=eaafe49123e402598d1e350c5654b7870073740d JSON 1.0 (on deb 4.0) doesn't have to_json yet --- diff --git a/httemplate/misc/xmlhttp-cust_main-address_standardize.html b/httemplate/misc/xmlhttp-cust_main-address_standardize.html index e290301c9..7da94c8ec 100644 --- a/httemplate/misc/xmlhttp-cust_main-address_standardize.html +++ b/httemplate/misc/xmlhttp-cust_main-address_standardize.html @@ -1,4 +1,4 @@ -<% to_json($return) %> +<% objToJson($return) %> <%init> my $DEBUG = 1; diff --git a/httemplate/misc/xmlhttp-cust_main-search.cgi b/httemplate/misc/xmlhttp-cust_main-search.cgi index 374623039..20707dab8 100644 --- a/httemplate/misc/xmlhttp-cust_main-search.cgi +++ b/httemplate/misc/xmlhttp-cust_main-search.cgi @@ -15,7 +15,7 @@ % my @cust_main = smart_search( 'search' => $string ); % my $return = [ map [ $_->custnum, $_->name ], @cust_main ]; % -<% to_json($return) %> +<% objToJson($return) %> % } <%init>