From 7c654c2d085070a605fd14d1f86558880efca0ab Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 2 Jan 2007 21:46:33 +0000 Subject: fix service searching & links --- httemplate/search/cust_svc.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'httemplate') diff --git a/httemplate/search/cust_svc.html b/httemplate/search/cust_svc.html index 568b43b18..1ab5ed171 100644 --- a/httemplate/search/cust_svc.html +++ b/httemplate/search/cust_svc.html @@ -106,5 +106,18 @@ my $link = sub { #'part_svc' => $cust_svc->part_svc, 'svcdb' => $cust_svc->svcdb, #we have it from the joined search #'svc' => $cust_svc, #redundant - 'query' => 'svcnum=', + 'query' => '', ); + [ $url, 'svcnum' ]; +}; + +my $link_cust = sub { + my $cust_svc = shift; + if ( $cust_svc->custnum ) { + [ "${p}view/cust_main.cgi?", 'custnum' ]; + } else { + ''; + } +}; + + -- cgit v1.2.1