[freeside-commits] branch FREESIDE_4_BRANCH updated. 90d4b6c0ed227637d6438cdf3593f6e95c6ff0a4
Ivan
ivan at 420.am
Wed Mar 8 13:29:28 PST 2017
The branch, FREESIDE_4_BRANCH has been updated
via 90d4b6c0ed227637d6438cdf3593f6e95c6ff0a4 (commit)
from 103cc35fc096f1cc1ca25fe5e0e25d1a71c80b86 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 90d4b6c0ed227637d6438cdf3593f6e95c6ff0a4
Author: Ivan Kohler <ivan at freeside.biz>
Date: Wed Mar 8 13:29:27 2017 -0800
fix self-service for ticket_system-less operation RT#75075
diff --git a/FS/bin/freeside-selfservice-server b/FS/bin/freeside-selfservice-server
index 8ce74d5..f008285 100644
--- a/FS/bin/freeside-selfservice-server
+++ b/FS/bin/freeside-selfservice-server
@@ -63,10 +63,15 @@ logfile("$FREESIDE_LOG/selfservice.$machine.log");
daemonize2();
my $conf = new FS::Conf;
+my $ticket_system = $conf->config('ticket_system');
if ( $conf->exists('selfservice-ignore_quantity') ) {
$FS::cust_svc::ignore_quantity = 1;
$FS::cust_svc::ignore_quantity = 1; #now it is used twice.
}
+if ( $conf->exists('selfservice-db_profile') ) {
+ eval "use DBIx::Profile";
+ warn $@ if $@;
+}
#clear the signup info cache so an "/etc/init.d/freeside restart" will pick
#up new info... (better as a callback in Signup.pm?)
@@ -161,7 +166,7 @@ while (1) {
$FS::UID::dbh->{InactiveDestroy} = 1;
forksuidsetup($user);
- FS::TicketSystem->init();
+ FS::TicketSystem->init() if $ticket_system;
my $type = $packet->{_packet};
warn "calling $type handler\n" if $Debug;
-----------------------------------------------------------------------
Summary of changes:
FS/bin/freeside-selfservice-server | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list