diff options
author | ivan <ivan> | 2010-02-21 03:16:02 +0000 |
---|---|---|
committer | ivan <ivan> | 2010-02-21 03:16:02 +0000 |
commit | 259eacca8b815b2bf159e7ee14385e2ac28ed9ee (patch) | |
tree | de35289c365cc1e3b0c47a8193454f22e2ec25c7 /httemplate/edit/process | |
parent | d2e5d9d1f65fc94eb87eae45b675645e92087f49 (diff) |
communigate, RT#7083
Diffstat (limited to 'httemplate/edit/process')
-rwxr-xr-x | httemplate/edit/process/svc_acct.cgi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/httemplate/edit/process/svc_acct.cgi b/httemplate/edit/process/svc_acct.cgi index 1712d51a8..a4c60ef9e 100755 --- a/httemplate/edit/process/svc_acct.cgi +++ b/httemplate/edit/process/svc_acct.cgi @@ -31,6 +31,18 @@ foreach (map { $_,$_."_threshold" } qw( upbytes downbytes totalbytes )) { $cgi->param($_, FS::UI::bytecount::parse_bytecount($cgi->param($_)) ); } +#unmunge cgp_accessmodes (falze laziness-ish w/part_svc.pm::process) +unless ( $cgi->param('cgp_accessmodes') ) { + $cgi->param('cgp_accessmodes', + join(' ', + sort map { /^cgp_accessmodes_([\w\/]+)$/ or die "no way"; $1; } + grep $cgi->param($_), + grep /^cgp_accessmodes_([\w\/]+)$/, + $cgi->param() + ) + ); +} + my %hash = $svcnum ? $old->hash : (); map { $hash{$_} = scalar($cgi->param($_)); |