make variable description more consistant wrt vars that are already shell-quoted
[freeside.git] / FS / FS / Conf.pm
index 5f2c3b3..4edcb99 100644 (file)
@@ -1294,11 +1294,19 @@ httemplate/docs/config.html
   },
 
   {
+    'key'         => 'payby',
+    'section'     => 'billing',
+    'description' => 'Available payment types.',
+    'type'        => 'selectmultiple',
+    'select_enum' => [ qw(CARD DCRD CHEK DCHK LECB BILL CASH WEST COMP) ],
+  },
+
+  {
     'key'         => 'payby-default',
     'section'     => 'UI',
     'description' => 'Default payment type.  HIDE disables display of billing information and sets customers to BILL.',
     'type'        => 'select',
-    'select_enum' => [ '', qw(CARD DCRD CHEK DCHK LECB BILL COMP HIDE) ],
+    'select_enum' => [ '', qw(CARD DCRD CHEK DCHK LECB BILL CASH WEST COMP HIDE) ],
   },
 
   {
@@ -1474,13 +1482,25 @@ httemplate/docs/config.html
     'section'     => '',
     'description' => 'Default queue used when creating new customer tickets.',
     'type'        => 'select-sub',
-    'options_sub' => sub { eval "use FS::TicketSystem;";
-                           die $@ if $@;
-                           FS::TicketSystem->queues();
+    '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 { eval "use FS::TicketSystem;";
-                           die $@ if $@;
-                           FS::TicketSystem->queue(shift);
+    'option_sub'  => sub { 
+                           my $conf = new FS::Conf;
+                           if ( $conf->config('ticket_system') ) {
+                             eval "use FS::TicketSystem;";
+                             die $@ if $@;
+                             FS::TicketSystem->queue(shift);
+                           } else {
+                             '';
+                           }
                          },
   },
 
@@ -1605,6 +1625,12 @@ httemplate/docs/config.html
     'type'        => 'checkbox',
   },
 
+  {
+    'key'         => 'zone-underscore',
+    'section'     => 'BIND',
+    'description' => 'Allow underscores in zone names.  As underscores are illegal characters in zone names, this option is not recommended.',
+    'type'        => 'checkbox',
+  },
 
 );