From: Ivan Kohler Date: Sun, 15 Jun 2014 08:03:56 +0000 (-0700) Subject: work around "prepared statement ... already exists" errors creating tickets from... X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=9686d044b747a9365de4b2c043d6c1e33b5c76a1 work around "prepared statement ... already exists" errors creating tickets from self-service API at the cost of performance, RT#27856 --- diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm index 6619eb181..dfd464004 100644 --- a/FS/FS/ClientAPI/MyAccount.pm +++ b/FS/FS/ClientAPI/MyAccount.pm @@ -3263,8 +3263,8 @@ sub create_ticket { my($context, $session, $custnum) = _custoragent_session_custnum($p); return { 'error' => $session } if $context eq 'error'; -# warn "$me create_ticket: initializing ticket system\n" if $DEBUG; -# FS::TicketSystem->init(); + warn "$me create_ticket: initializing ticket system\n" if $DEBUG; + FS::TicketSystem->init(); my $conf = new FS::Conf; my $queue = $p->{'queue'}