From 0dd05e9ff98263d2d42b419b1e278a5a3bc594b2 Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 12 Apr 2007 03:16:43 +0000 Subject: input and output on data volume fields specified with k,m,g,or t --- httemplate/edit/process/svc_acct.cgi | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'httemplate/edit/process/svc_acct.cgi') diff --git a/httemplate/edit/process/svc_acct.cgi b/httemplate/edit/process/svc_acct.cgi index 30552c846..65ac5c176 100755 --- a/httemplate/edit/process/svc_acct.cgi +++ b/httemplate/edit/process/svc_acct.cgi @@ -23,6 +23,11 @@ %#unmunge usergroup %$cgi->param('usergroup', [ $cgi->param('radius_usergroup') ] ); % +%#unmunge bytecounts +%foreach (map { $_,$_."_threshold" } qw( upbytes downbytes totalbytes )) { +% $cgi->param($_, FS::UI::Web::parse_bytecount($cgi->param($_)) ); +%} +% %my %hash = $svcnum ? $old->hash : (); %map { % $hash{$_} = scalar($cgi->param($_)); -- cgit v1.2.1