diff options
Diffstat (limited to 'httemplate/edit/cust_main_note.cgi')
-rwxr-xr-x | httemplate/edit/cust_main_note.cgi | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/httemplate/edit/cust_main_note.cgi b/httemplate/edit/cust_main_note.cgi index 4cf5024..55bd97c 100755 --- a/httemplate/edit/cust_main_note.cgi +++ b/httemplate/edit/cust_main_note.cgi @@ -6,17 +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')) { -% my %includeopts = $conf->config('note-classes') eq 'Enabled' -% ? ('empty_label' => '(unclassified)') -% : ('disable_empty' => 1); # eq 'Required' +% if (my @noteclasses = qsearch('cust_note_class',{ 'disabled' => '' })) { +% my %noteclassopts = $conf->exists('cust_main_note-require_class') +% ? ('disable_empty' => 1) +% : ('empty_label' => '(unclassified)'); Class <% include( '/elements/select-table.html', 'table' => 'cust_note_class', + 'records' => \@noteclasses, 'name_col' => 'classname', 'curr_value' => $classnum, - 'hashref' => { 'disabled' => '' }, - %includeopts, + %noteclassopts, ) %> <BR> % } |