diff options
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Conf.pm | 17 | ||||
-rw-r--r-- | FS/FS/cust_main_note.pm | 3 |
2 files changed, 15 insertions, 5 deletions
diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 8e07c72bb..c31a1e173 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -4179,6 +4179,13 @@ and customer address. Include units.', }, { + 'key' => 'cust_main_note-require_class', + 'section' => 'customer_fields', + 'description' => 'Require customer note classes for customer notes', + 'type' => 'checkbox', + }, + + { 'key' => 'cust_main-ticket_statuses', 'section' => 'UI', 'description' => 'Show tickets with these statuses on the customer view page.', @@ -5744,10 +5751,14 @@ and customer address. Include units.', { 'key' => 'note-classes', - 'section' => 'UI', - 'description' => 'Use customer note classes', + 'section' => 'deprecated', + 'description' => 'Use customer note classes (now automatically used if classes are defined)', 'type' => 'select', - 'select_enum' => [ '', 'Enabled', 'Required' ], + 'select_hash' => [ + 0 => 'Disabled', + 1 => 'Enabled', + 2 => 'Enabled, with tabs', + ], }, { diff --git a/FS/FS/cust_main_note.pm b/FS/FS/cust_main_note.pm index 1723951d1..f637c356f 100644 --- a/FS/FS/cust_main_note.pm +++ b/FS/FS/cust_main_note.pm @@ -121,8 +121,7 @@ sub check { if (!$self->classnum) { my $conf = new FS::Conf; return 'Note class is required' - if $conf->exists('note-classes') - and $conf->config('note-classes') eq 'Required'; + if $conf->exists('cust_main_note-require_class'); } $self->SUPER::check; |