[freeside-commits] freeside/FS/FS Conf.pm,1.139,1.140
Ivan,,,
ivan at wavetail.420.am
Sat Oct 15 06:37:24 PDT 2005
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv10402
Modified Files:
Conf.pm
Log Message:
make sure config still works if no ticket system is configured...
Index: Conf.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf.pm,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -d -r1.139 -r1.140
--- Conf.pm 15 Oct 2005 11:29:53 -0000 1.139
+++ Conf.pm 15 Oct 2005 13:37:22 -0000 1.140
@@ -1476,11 +1476,20 @@
'type' => 'select-sub',
'options_sub' => sub { eval "use FS::TicketSystem;";
die $@ if $@;
- FS::TicketSystem->queues();
+ my $conf = new FS::Conf;
+ if ( $conf->config('ticket_system') ) {
+ FS::TicketSystem->queues();
+ } else {
+ ();
+ }
},
'option_sub' => sub { eval "use FS::TicketSystem;";
die $@ if $@;
- FS::TicketSystem->queue(shift);
+ if ( $conf->config('ticket_system') ) {
+ FS::TicketSystem->queue(shift);
+ } else {
+ '';
+ }
},
},
More information about the freeside-commits
mailing list