X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fcust_svc.html;h=2c17561f2981b868b356d03bda1b338da4cbe772;hb=624b2d44625f69d71175c3348cae635d580c890b;hp=6369b202e8103b65f46ac8e5c67d5c989f892a1a;hpb=590603ecaea3184f64530755a76626be8205da49;p=freeside.git diff --git a/httemplate/search/cust_svc.html b/httemplate/search/cust_svc.html index 6369b202e..2c17561f2 100644 --- a/httemplate/search/cust_svc.html +++ b/httemplate/search/cust_svc.html @@ -90,11 +90,13 @@ if ( length( $cgi->param('search_svc') ) ) { push @extra_sql, "svcpart = $1"; } else { - eidiot("No search term specified"); + errorpage("No search term specified"); } #here is the agent virtualization -push @extra_sql, $FS::CurrentUser::CurrentUser->agentnums_sql; +push @extra_sql, $FS::CurrentUser::CurrentUser->agentnums_sql( + 'null_right' => 'View/link unlinked services' + ); my $extra_sql = ' WHERE '. join(' AND ', @extra_sql ); @@ -115,7 +117,7 @@ my $count_query = "SELECT COUNT(*) FROM cust_svc $addl_from $extra_sql"; my $link = sub { my $cust_svc = shift; - my $url = FS::UI::Web::svc_url( + my $url = svc_url( 'm' => $m, 'action' => 'view', #'part_svc' => $cust_svc->part_svc,