fix usergroup in edit/part_svc.cgi
authorjeff <jeff>
Thu, 8 Feb 2007 17:00:38 +0000 (17:00 +0000)
committerjeff <jeff>
Thu, 8 Feb 2007 17:00:38 +0000 (17:00 +0000)
FS/FS/svc_acct.pm
httemplate/edit/part_svc.cgi

index 8504c18..32ffb76 100644 (file)
@@ -272,6 +272,7 @@ sub table_info {
                          label => 'RADIUS groups',
                          type  => 'radius_usergroup_selector',
                          disable_inventory => 1,
+                         disable_select => 1,
                        },
         'seconds'   => { label => 'Seconds',
                          type  => 'text',
index a2ceced..4b841dd 100755 (executable)
@@ -223,7 +223,7 @@ that field.
 %            '    } else if ( f == "D" || f == "F" || f =="S" ) { //enable, text box',
 %            "      what.form.${layer}__${field}.disabled = false;".
 %            "      what.form.${layer}__${field}.style.backgroundColor = '#ffffff';".
-%            '      if ( f == "S" ) {'.
+%            "      if ( f == 'S' || '${field}' == 'usergroup' ) {". # kludge
 %            "        what.form.${layer}__${field}.multiple = true;".
 %            "      } else {".
 %            "        what.form.${layer}__${field}.multiple = false;".