diff options
author | ivan <ivan> | 2007-01-02 21:46:33 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-01-02 21:46:33 +0000 |
commit | 7c654c2d085070a605fd14d1f86558880efca0ab (patch) | |
tree | 3854191fb7f1b042ea63e70b014ad7552dbbb865 /httemplate/search/cust_svc.html | |
parent | 129766f1fe5dd7e8d77133747c252baf8cff3962 (diff) |
fix service searching & links
Diffstat (limited to 'httemplate/search/cust_svc.html')
-rw-r--r-- | httemplate/search/cust_svc.html | 15 |
1 files changed, 14 insertions, 1 deletions
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 { + ''; + } +}; + +</%init> |