[freeside-commits] branch master updated. 9e0d1dacd8db275dff7f5827bc65b3f1531f8882

Mark Wells mark at 420.am
Mon Apr 4 13:37:26 PDT 2016


The branch, master has been updated
       via  9e0d1dacd8db275dff7f5827bc65b3f1531f8882 (commit)
      from  f421a622461d5259804f0da238f349f4a790d91f (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 9e0d1dacd8db275dff7f5827bc65b3f1531f8882
Author: Mark Wells <mark at freeside.biz>
Date:   Mon Apr 4 13:35:11 2016 -0700

    instrument adjust_ticket_priority to get information on #39536

diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index 6b91101..62bd9e8 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -3606,6 +3606,11 @@ sub adjust_ticket_priority {
   my($context, $session, $custnum) = _custoragent_session_custnum($p);
   return { 'error' => $session } if $context eq 'error';
 
+  # temporary instrumentation for RT#39536
+    local $DEBUG = 1;
+    local $FS::TicketSystem::RT_Internal::DEBUG = 1;
+    warn "[adjust_ticket_priority]\n" . Dumper($p->{'values'}) . "\n\n";
+
 #  warn "$me adjust_ticket_priority: initializing ticket system\n" if $DEBUG;
 #  FS::TicketSystem->init;
   my $ss_priority = FS::TicketSystem->selfservice_priority;
diff --git a/FS/FS/TicketSystem/RT_Internal.pm b/FS/FS/TicketSystem/RT_Internal.pm
index 1c4513e..6b2d354 100644
--- a/FS/FS/TicketSystem/RT_Internal.pm
+++ b/FS/FS/TicketSystem/RT_Internal.pm
@@ -468,6 +468,9 @@ sub get_ticket_object {
   }
   my $Tickets = RT::Tickets->new($session->{CurrentUser});
   $Tickets->FromSQL($query);
+  if ( $DEBUG ) { # temporary for RT#39536
+    warn "[get_ticket_object] " . $Tickets->BuildSelectQuery . "\n\n";
+  }
   return $Tickets->First;
 }
 

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/ClientAPI/MyAccount.pm      |    5 +++++
 FS/FS/TicketSystem/RT_Internal.pm |    3 +++
 2 files changed, 8 insertions(+)




More information about the freeside-commits mailing list