[freeside-commits] freeside/httemplate/misc custom_link_proxy.cgi, 1.2, 1.3

Ivan,,, ivan at wavetail.420.am
Tue Dec 6 20:49:22 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail.420.am:/tmp/cvs-serv3991/httemplate/misc

Modified Files:
	custom_link_proxy.cgi 
Log Message:
add usernum to cust_main-custom_link, RT#15475

Index: custom_link_proxy.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/misc/custom_link_proxy.cgi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -w -d -r1.2 -r1.3
--- custom_link_proxy.cgi	25 Oct 2011 01:14:34 -0000	1.2
+++ custom_link_proxy.cgi	7 Dec 2011 04:49:20 -0000	1.3
@@ -14,15 +14,16 @@
 my $url = $conf->config('cust_main-custom_link');
 
 my $agentnum = $cust_main->agentnum;
+my $curuser = $FS::CurrentUser::CurrentUser;
+my $usernum = $curuser->usernum;
 # like eval(qq("$url")) but with fewer things that can go wrong
 # and if $custnum isn't mentioned, assume it goes at the end
 $url =~ s/\$custnum/$custnum/ or $url .= $custnum;
 $url =~ s/\$agentnum/$agentnum/;
+$url =~ s/\$usernum/$usernum/;
 
 #warn $url;
 
-my $curuser = $FS::CurrentUser::CurrentUser;
-
 die "access denied"
   unless $curuser->access_right('View customer');
 



More information about the freeside-commits mailing list