72901: OFM Freeside Note Classes
[freeside.git] / httemplate / edit / cust_main_note.cgi
index 9ae29c2..cc93f24 100755 (executable)
@@ -6,14 +6,17 @@
 <INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
 <INPUT TYPE="hidden" NAME="notenum" VALUE="<% $notenum %>">
 
-% if ($conf->exists('note-classes') && $conf->config('note-classes') > 0) {
+% if ($conf->exists('note-classes') && $conf->config('note-classes')) {
+%   my %includeopts = $conf->config('note-classes') eq 'Enabled'
+%                   ? ('empty_label' => '(unclassified)')
+%                   : ('disable_empty' => 1); # eq 'Required'
     Class &nbsp;
        <% include( '/elements/select-table.html',
                  'table'       => 'cust_note_class',
                  'name_col'    => 'classname',
                  'curr_value'  => $classnum,
-                 'empty_label' => '(none)',
                  'hashref'     => { 'disabled' => '' },
+                 %includeopts,
          ) %>
     <BR>
 % }
@@ -26,7 +29,7 @@
     <& /elements/htmlarea.html,
          'field'      => 'comment_html',
          'curr_value' => $comment,
-         'config'     => { toolbarStartupExpanded => JSON::false,
+         'config'     => { toolbarStartupExpanded => Cpanel::JSON::XS::false,
                            height                 => 315,
                          },
     &>