From d4114381c5d95e8acd0d0fc2bbc2b3528bde2ecf Mon Sep 17 00:00:00 2001 From: Jonathan Prykop Date: Fri, 14 Oct 2016 20:49:38 -0500 Subject: 72901: OFM Freeside Note Classes --- httemplate/edit/cust_main_note.cgi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'httemplate/edit/cust_main_note.cgi') diff --git a/httemplate/edit/cust_main_note.cgi b/httemplate/edit/cust_main_note.cgi index c295e0d7a..cc93f2498 100755 --- a/httemplate/edit/cust_main_note.cgi +++ b/httemplate/edit/cust_main_note.cgi @@ -6,14 +6,17 @@ -% 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   <% include( '/elements/select-table.html', 'table' => 'cust_note_class', 'name_col' => 'classname', 'curr_value' => $classnum, - 'empty_label' => '(none)', 'hashref' => { 'disabled' => '' }, + %includeopts, ) %>
% } -- cgit v1.2.1