X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fmisc%2Fcustom_link_proxy.cgi;h=db9a048be5339dd21283c33e2f84fc8d0acd3f6b;hp=f3c6e376eff32f79bf48864203147e03b790f0ed;hb=2eea268a59cf357853e31ff8d5db6033e4bdc8ea;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924 diff --git a/httemplate/misc/custom_link_proxy.cgi b/httemplate/misc/custom_link_proxy.cgi index f3c6e376e..db9a048be 100644 --- a/httemplate/misc/custom_link_proxy.cgi +++ b/httemplate/misc/custom_link_proxy.cgi @@ -14,12 +14,14 @@ my $conf = new FS::Conf; my $url = $conf->config('cust_main-custom_link'); my $agentnum = $cust_main->agentnum; +my $agent_custid = $cust_main->agent_custid; 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/\$agent_custid/$agent_custid/; $url =~ s/\$usernum/$usernum/; #warn $url;