reincorporate the changes from http://www.sisd.com/cgi-bin/viewcvs.cgi/freeside/httem...
[freeside.git] / httemplate / edit / part_svc.cgi
index a2ceced..6ba9240 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;".
@@ -280,7 +280,9 @@ that field.
 %
 %        } elsif ( $def->{type} eq 'select' ) {
 %
-%          $html .= qq!<SELECT NAME="${layer}__${field}" $disabled>!;
+%          $html .= qq!<SELECT NAME="${layer}__${field}" $disabled!;
+%          $html .= ' MULTIPLE' if $flag eq 'S';
+%          $html .= '>';
 %          $html .= '<OPTION> </OPTION>' unless $value;
 %          if ( $def->{select_table} ) {
 %            foreach my $record ( qsearch( $def->{select_table}, {} ) ) {