diff options
author | ivan <ivan> | 2001-09-11 23:44:01 +0000 |
---|---|---|
committer | ivan <ivan> | 2001-09-11 23:44:01 +0000 |
commit | 844855ae401bc5a7167b5fa8898275f89719ed71 (patch) | |
tree | 4a2f0ef1ea2a9917199325c83b54cfa0f861c0db /httemplate/edit/svc_forward.cgi | |
parent | cf7ca698138c8708c68cb969cc843311e385a7a8 (diff) |
radius attributes & default/fixed values should work again now
Diffstat (limited to 'httemplate/edit/svc_forward.cgi')
-rwxr-xr-x | httemplate/edit/svc_forward.cgi | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/httemplate/edit/svc_forward.cgi b/httemplate/edit/svc_forward.cgi index de4c8cbc9..287833e53 100755 --- a/httemplate/edit/svc_forward.cgi +++ b/httemplate/edit/svc_forward.cgi @@ -1,5 +1,5 @@ <% -# <!-- $Id: svc_forward.cgi,v 1.3 2001-08-21 10:27:11 ivan Exp $ --> +# <!-- $Id: svc_forward.cgi,v 1.4 2001-09-11 23:44:01 ivan Exp $ --> use strict; use vars qw( $conf $cgi $mydomain $action $svcnum $svc_forward $pkgnum $svcpart @@ -57,13 +57,15 @@ if ( $cgi->param('error') ) { $svcnum=''; #set fixed and default fields from part_svc - my($field); - foreach $field ( fields('svc_forward') ) { - if ( $part_svc->getfield('svc_forward__'. $field. '_flag') ne '' ) { - $svc_forward->setfield($field,$part_svc->getfield('svc_forward__'. $field) ); - } + foreach my $part_svc_column ( + grep { $_->columnflag } $part_svc->all_part_svc_column + ) { + $svc_forward->setfield( $part_svc_column->columnname, + $part_svc_column->columnvalue, + ); } + } } $action = $svc_forward->svcnum ? 'Edit' : 'Add'; |