From 266e0c3c894568fb06a15dfbcf4a4eb9bc6989b3 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Tue, 20 Feb 2018 14:17:55 -0800 Subject: fix broadband reporting with giant query URLs (large numbers of package defs, etc.), RT#76765 --- httemplate/elements/email-link.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'httemplate/elements/email-link.html') diff --git a/httemplate/elements/email-link.html b/httemplate/elements/email-link.html index 16935cf98..012afff1a 100644 --- a/httemplate/elements/email-link.html +++ b/httemplate/elements/email-link.html @@ -1,18 +1,19 @@ % if ( $FS::CurrentUser::CurrentUser->access_right('Bulk send customer notices') ) { -<%$label%> +<%$label%> % } <%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 "'table' required" if !$opt{'table'}; die "'search_hash' required" if !$search_hash; my $uri = new URI; my @params = map { $_, $search_hash->{$_} } sort keys %$search_hash; -$uri->query_form(@params); -my $query = $uri->query; +$uri->query_form( @params, + table => $opt{'table'}, + agent_virt_agentnum => $opt{'agent_virt_agentnum'} + ); +my $query = $m->scomp('/elements/create_uri_query', query=>$uri->query); my $label = ($opt{'label'} || 'Email a notice to these customers'); -- cgit v1.2.1