From eaafe49123e402598d1e350c5654b7870073740d Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 9 May 2008 06:34:58 +0000 Subject: JSON 1.0 (on deb 4.0) doesn't have to_json yet --- httemplate/misc/xmlhttp-cust_main-search.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'httemplate/misc/xmlhttp-cust_main-search.cgi') 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> -- cgit v1.2.1