-% 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)');