[freeside-commits] freeside/httemplate/edit part_svc.cgi, 1.79, 1.79.2.1

Mark Wells mark at wavetail.420.am
Thu Nov 10 18:00:12 PST 2011


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv541/httemplate/edit

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	part_svc.cgi 
Log Message:
RADIUS groups for svc_broadband, #14695

Index: part_svc.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/part_svc.cgi,v
retrieving revision 1.79
retrieving revision 1.79.2.1
diff -u -w -d -r1.79 -r1.79.2.1
--- part_svc.cgi	21 Jun 2011 01:04:55 -0000	1.79
+++ part_svc.cgi	11 Nov 2011 02:00:10 -0000	1.79.2.1
@@ -139,7 +139,11 @@
 %               )
 %        } fields($layer);
 %      }
-%      push @fields, 'usergroup' if $layer eq 'svc_acct'; #kludge
+%      push @fields, 'usergroup' 
+%        if $layer eq 'svc_acct'
+%          or ( $layer eq 'svc_broadband' and 
+%               $conf->exists('svc_broadband-radius') ); # double kludge
+%               # (but we do want to check the config, right?)
 %      $part_svc->svcpart($clone) if $clone; #haha, undone below
 %
 %
@@ -320,7 +324,9 @@
 %                             'curr_value'   => $value,
 %                             'element_name' => "${layer}__${field}",
 %                             'element_etc'  => $disabled,
-%                             'multiple'     => ($flag eq 'S'),
+%                             'multiple'     => ($def->{multiple} ||
+%                                                $flag eq 'S'),
+%                                 # allow the table def to force 'multiple'
 %                          );
 %
 %        } elsif ( $def->{type} eq 'communigate_pro-accessmodes' ) {
@@ -400,6 +406,7 @@
 die "access denied"
   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
 
+my $conf = FS::Conf->new;
 my $part_svc;
 my $clone = '';
 if ( $cgi->param('clone') && $cgi->param('clone') =~ /^(\d+)$/ ) {#clone



More information about the freeside-commits mailing list