summaryrefslogtreecommitdiff
path: root/httemplate/elements
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-02-27 00:29:19 -0800
committerIvan Kohler <ivan@freeside.biz>2014-02-27 00:29:19 -0800
commita75e66f42a529d69d2f38a12290be29187d0d9ec (patch)
treef736e9fe4835dcc0c6edea3168357c1121af65b3 /httemplate/elements
parent5b7ba710939e35f0ed1031e7e0abfbb21ab1bfa0 (diff)
agent-virt "email a notice to this customer" from address, RT#27424
Diffstat (limited to 'httemplate/elements')
-rw-r--r--httemplate/elements/email-link.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/elements/email-link.html b/httemplate/elements/email-link.html
index 692e5bc2e..2612faabb 100644
--- a/httemplate/elements/email-link.html
+++ b/httemplate/elements/email-link.html
@@ -1,9 +1,10 @@
% if ( $FS::CurrentUser::CurrentUser->access_right('Bulk send customer notices') ) {
-<A HREF="<%$p%>misc/email-customers.html?table=<%$table%>&<%$query%>"><%$label%></A>
+<A HREF="<%$p%>misc/email-customers.html?table=<%$table%>&agent_virt_agentnum=<%$agent_virt_agentnum%>&<%$query%>"><%$label%></A>
% }
<%init>
my %opt = @_;
my $table = $opt{'table'};
+my $agent_virt_agentnum = $opt{'agent_virt_agentnum'};
my $search_hash = $opt{'search_hash'};
die "'table' required" if !$table;
die "'search_hash' required" if !$search_hash;