diff options
author | jeff <jeff> | 2007-07-06 23:55:26 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-07-06 23:55:26 +0000 |
commit | 49f06ef162f67e5856c6160fc7e18e225706722f (patch) | |
tree | 2bd826048e2be28df38f07ee63a09d9250844307 /httemplate | |
parent | 49999d102d4c127a0a7b169de3a51bef99e4be90 (diff) |
manually editing usage counters removes overlimit status (#1706)
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/process/svc_acct.cgi | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/httemplate/edit/process/svc_acct.cgi b/httemplate/edit/process/svc_acct.cgi index a4a6c0015..d9aac9fac 100755 --- a/httemplate/edit/process/svc_acct.cgi +++ b/httemplate/edit/process/svc_acct.cgi @@ -38,7 +38,15 @@ % %my $error; %if ( $svcnum ) { -% $error = $new->replace($old); +% foreach (grep { $old->$_ != $new->$_ } qw( seconds upbytes downbytes totalbytes )) { +% my %hash = map { $_ => $new->$_ } +% grep { $new->$_ } +% qw( seconds upbytes downbytes totalbytes ); +% +% $error = $new->set_usage(\%hash); #unoverlimit and trigger radius changes +% last; #once is enough +% } +% $error ||= $new->replace($old); %} else { % $error = $new->insert; % $svcnum = $new->svcnum; |