summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorivan <ivan>2010-11-27 03:55:07 +0000
committerivan <ivan>2010-11-27 03:55:07 +0000
commit02a6bfc2dba1a1f9c1efcd7d7da258b33be76d30 (patch)
tree8e17e022feffadaaed19a6db1d6e630d7656a5e5 /httemplate/misc
parent4d510fab209dcfd9e6ec75a55ee653593e2d1435 (diff)
fix "URL limit exceeded" when errors are present on quick payment entry, RT#9917
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/batch-cust_pay.html4
-rw-r--r--httemplate/misc/process/batch-cust_pay.cgi5
2 files changed, 6 insertions, 3 deletions
diff --git a/httemplate/misc/batch-cust_pay.html b/httemplate/misc/batch-cust_pay.html
index 610f6e1db..c5ed6d852 100644
--- a/httemplate/misc/batch-cust_pay.html
+++ b/httemplate/misc/batch-cust_pay.html
@@ -107,7 +107,7 @@ my @footer = ( '$', '_TOTAL', '' );
my @footer_align = ( 'c', 'r', 'r' );
my $custnum_update_callback = '';
-if ( FS::Record->scalar_sql('SELECT count(*) FROM part_pkg_discount') ) {
+if ( FS::Record->scalar_sql('SELECT COUNT(*) FROM part_pkg_discount') ) {
push @header, '';
push @fields, 'discount_term';
push @types, 'immutable';
@@ -128,4 +128,6 @@ push @colors, '#ff0000';
push @footer, '';
push @footer_align, '';
+$m->comp('/elements/handle_uri_query');
+
</%init>
diff --git a/httemplate/misc/process/batch-cust_pay.cgi b/httemplate/misc/process/batch-cust_pay.cgi
index e51b9e6d7..aa371266c 100644
--- a/httemplate/misc/process/batch-cust_pay.cgi
+++ b/httemplate/misc/process/batch-cust_pay.cgi
@@ -54,9 +54,10 @@
%
% my $erow=0;
% $cgi->param('error'. $erow++, shift @errors) while @errors;
-%
%
-<% $cgi->redirect($p.'batch-cust_pay.html?'. $cgi->query_string)
+% my $query = $m->scomp('/elements/create_uri_query');
+%
+<% $cgi->redirect($p."batch-cust_pay.html?$query")
%>
% } else {