diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-10-24 03:51:26 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-10-24 03:51:26 -0500 |
commit | f675734f1eda5b39f891a6fc8f2f29cbd2e36c35 (patch) | |
tree | 45159518dfb872bb6e14cc8e15b0b965d995a27f /httemplate/edit/cust_main_note.cgi | |
parent | 511c1f635c1c64c90a7ae882730504f145c8a09c (diff) |
72901: OFM Freeside Note Classes [conf update, jquery refactor]
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 cc93f2498..18d59e951 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> % } |