Merge branch 'FREESIDE_3_BRANCH_34237' into FREESIDE_3_BRANCH
authorJonathan Prykop <jonathan@freeside.biz>
Fri, 19 Feb 2016 08:52:01 +0000 (02:52 -0600)
committerJonathan Prykop <jonathan@freeside.biz>
Fri, 19 Feb 2016 08:52:01 +0000 (02:52 -0600)
1  2 
FS/FS/Conf.pm

diff --combined FS/FS/Conf.pm
@@@ -3276,12 -3276,14 +3276,14 @@@ and customer address. Include units.'
                             }
                           },
    },
    {
      'key'         => 'ticket_system-force_default_queueid',
      'section'     => 'ticketing',
      'description' => 'Disallow queue selection when creating new tickets from customer view.',
      'type'        => 'checkbox',
    },
    {
      'key'         => 'ticket_system-selfservice_queueid',
      'section'     => 'ticketing',
      'description' => 'Allow customers to edit ticket subjects through selfservice.',
      'type'        => 'checkbox',
    },
+   {
+     'key'         => 'ticket_system-appointment-queueid',
+     'section'     => 'ticketing',
+     'description' => 'Custom field from the ticketing system to use as an appointment classification.',
+     #false laziness w/above
+     'type'        => 'select-sub',
+     'options_sub' => sub {
+                            my $conf = new FS::Conf;
+                            if ( $conf->config('ticket_system') ) {
+                              eval "use FS::TicketSystem;";
+                              die $@ if $@;
+                              FS::TicketSystem->queues();
+                            } else {
+                              ();
+                            }
+                          },
+     'option_sub'  => sub { 
+                            my $conf = new FS::Conf;
+                            if ( $conf->config('ticket_system') ) {
+                              eval "use FS::TicketSystem;";
+                              die $@ if $@;
+                              FS::TicketSystem->queue(shift);
+                            } else {
+                              '';
+                            }
+                          },
+   },
+   {
+     'key'         => 'ticket_system-appointment-custom_field',
+     'section'     => 'ticketing',
+     'description' => 'Custom field from the ticketing system to use as an appointment classification.',
+     'type'        => 'text',
+   },
  
    {
      'key'         => 'ticket_system-escalation',
    },
  
    {
 +    'key'         => 'password-insecure',
 +    'section'     => 'password',
 +    'description' => 'Disable all password security checks and allow entry of insecure passwords.  NOT RECOMMENDED.',
 +    'type'        => 'checkbox',
 +    'per_agent'   => 1,
 +  },
 +
 +  {
      'key'         => 'datavolume-forcemegabytes',
      'section'     => 'UI',
      'description' => 'All data volumes are expressed in megabytes',