[freeside-commits] freeside/FS/FS Conf.pm,1.324.2.21,1.324.2.22

Ivan,,, ivan at wavetail.420.am
Thu Feb 11 17:37:55 PST 2010


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv6490/FS/FS

Modified Files:
      Tag: FREESIDE_1_9_BRANCH
	Conf.pm 
Log Message:
add ticket creation to self-service API, RT#7007

Index: Conf.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf.pm,v
retrieving revision 1.324.2.21
retrieving revision 1.324.2.22
diff -u -d -r1.324.2.21 -r1.324.2.22
--- Conf.pm	29 Jan 2010 20:21:37 -0000	1.324.2.21
+++ Conf.pm	12 Feb 2010 01:37:53 -0000	1.324.2.22
@@ -2063,6 +2063,34 @@
   },
 
   {
+    'key'         => 'ticket_system-selfservice_queueid',
+    'section'     => '',
+    'description' => 'Queue used when creating new customer tickets from self-service.  Defautls to ticket_system-default_queueid if not specified.',
+    #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-priority_reverse',
     'section'     => '',
     'description' => 'Enable this to consider lower numbered priorities more important.  A bad habit we picked up somewhere.  You probably want to avoid it and use the default.',



More information about the freeside-commits mailing list