summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/elements/process.html
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-11-28 08:55:29 -0500
committerChristopher Burger <burgerc@freeside.biz>2018-11-28 10:55:24 -0500
commitd616680361b7e453260fa1eb062f016982f8e836 (patch)
tree7161fd2db3d254300f04f45fe79d0c312118b7bf /httemplate/edit/process/elements/process.html
parenta4c7d2df1a8e03a5bc4ee51a16734e4a255a0eb2 (diff)
RT# 81126 - IP address field now shows required when required, IP address and Radius Group sticky on error when provisioning svc broadband
Conflicts: FS/FS/svc_broadband.pm
Diffstat (limited to 'httemplate/edit/process/elements/process.html')
-rw-r--r--httemplate/edit/process/elements/process.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/httemplate/edit/process/elements/process.html b/httemplate/edit/process/elements/process.html
index 11757237a..7933717b0 100644
--- a/httemplate/edit/process/elements/process.html
+++ b/httemplate/edit/process/elements/process.html
@@ -105,6 +105,12 @@ Example:
</%doc>
%if ( $error ) {
+% ## flatten any array refs so multi selects are sticky on error
+% for my $param ($cgi->param) {
+% if (ref($cgi->param($param)) eq "ARRAY") {
+% $cgi->param($param, (join ",", @{$cgi->param($param)}));
+% }
+% }
%
% #my $query = $m->scomp('/elements/create_uri_query');
% #$cgi->redirect("$url?$query");