[freeside-commits] freeside/httemplate/misc whois.cgi,1.4,1.5
Ivan,,,
ivan at wavetail.420.am
Wed Dec 3 13:15:41 PST 2008
- Previous message: [freeside-commits] freeside/httemplate/view cust_pay.html, 1.4, 1.5 cust_refund.html, 1.2, 1.3 svc_external.cgi, 1.8, 1.9 cust_bill.cgi, 1.40, 1.41 svc_broadband.cgi, 1.14, 1.15 svc_domain.cgi, 1.26, 1.27 svc_forward.cgi, 1.17, 1.18 svc_www.cgi, 1.18, 1.19
- Next message: [freeside-commits] freeside/httemplate/search report_receivables.html, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv18707/misc
Modified Files:
whois.cgi
Log Message:
fix real customer numbers showing on view pages, RT#4099/4379
Index: whois.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/whois.cgi,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- whois.cgi 13 Jan 2008 21:14:19 -0000 1.4
+++ whois.cgi 3 Dec 2008 21:15:39 -0000 1.5
@@ -1,6 +1,6 @@
<% include("/elements/header.html","Whois $domain", menubar(
( $custnum
- ? ( "View this customer (#$custnum)" => "${p}view/cust_main.cgi?$custnum",
+ ? ( "View this customer (#$display_custnum)" => "${p}view/cust_main.cgi?$custnum",
)
: ()
),
@@ -17,6 +17,12 @@
my $custnum = $cgi->param('custnum');
my $domain = $cgi->param('domain');
+my $display_custnum;
+if ( $custnum ) {
+ my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } );
+ $display_custnum = $cust_main->display_custnum;
+}
+
my $whois = eval { whois($domain) };
if ( $@ ) {
( $whois = $@ ) =~ s/ at \/.*Net\/Whois\/Raw\.pm line \d+.*$//s;
- Previous message: [freeside-commits] freeside/httemplate/view cust_pay.html, 1.4, 1.5 cust_refund.html, 1.2, 1.3 svc_external.cgi, 1.8, 1.9 cust_bill.cgi, 1.40, 1.41 svc_broadband.cgi, 1.14, 1.15 svc_domain.cgi, 1.26, 1.27 svc_forward.cgi, 1.17, 1.18 svc_www.cgi, 1.18, 1.19
- Next message: [freeside-commits] freeside/httemplate/search report_receivables.html, 1.6, 1.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list