From ff873782e78715891b9d5d2eb5b38c735d372556 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 3 Dec 2008 21:15:39 +0000 Subject: fix real customer numbers showing on view pages, RT#4099/4379 --- httemplate/view/svc_external.cgi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'httemplate/view/svc_external.cgi') diff --git a/httemplate/view/svc_external.cgi b/httemplate/view/svc_external.cgi index 553d2362a..222f36a85 100644 --- a/httemplate/view/svc_external.cgi +++ b/httemplate/view/svc_external.cgi @@ -1,6 +1,6 @@ <% include("/elements/header.html",'External Service View', menubar( ( ( $custnum ) - ? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum", + ? ( "View this customer (#$display_custnum)" => "${p}view/cust_main.cgi?$custnum", ) : ( "Cancel this (unaudited) external service" => "${p}misc/cancel-unaudited.cgi?$svcnum" ) @@ -49,10 +49,11 @@ my $conf = new FS::Conf; #false laziness w/all svc_*.cgi my $cust_svc = qsearchs( 'cust_svc', { 'svcnum' => $svcnum } ); my $pkgnum = $cust_svc->getfield('pkgnum'); -my($cust_pkg, $custnum); +my($cust_pkg, $custnum, $display_custnum); if ($pkgnum) { $cust_pkg = qsearchs( 'cust_pkg', { 'pkgnum' => $pkgnum } ); $custnum = $cust_pkg->custnum; + $display_custnum = $cust_pkg->cust_main->display_custnum; } else { $cust_pkg = ''; $custnum = ''; -- cgit v1.2.1